pub type UseSharedStateResult<T> = Result<T, UseSharedStateError>;

Aliased Type§

enum UseSharedStateResult<T> {
    Ok(T),
    Err(UseSharedStateError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(UseSharedStateError)

Contains the error value

Trait Implementations§

§

impl<T, E> Throw<()> for Result<T, E>where E: Debug + 'static,

Or just throw errors we know about

§

type Out = T

The value that will be returned in if the given value is Ok.
§

fn throw(self, cx: &ScopeState) -> Option<T>

Returns an option that evaluates to None if there is an error, injecting the error to the nearest error boundary. Read more
§

fn throw_with<D>( self, cx: &ScopeState, error: impl FnOnce() -> D ) -> Option<<Result<T, E> as Throw<()>>::Out>where D: Debug + 'static,

Returns an option that evaluates to None if there is an error, injecting the error to the nearest error boundary. Read more