Enum dioxus_use_request::RequestResult
source · [−]pub enum RequestResult<'a, T> {
Success(T),
Failure(&'a Error),
Loading,
}Expand description
Result type for the use_request hook
Variants
Success(T)
Result for a finished successful request with the requested value
Failure(&'a Error)
Result for a finished failed request with the error that indicates why the request failed
Loading
Symbolic enum field to indicate, that the request has not finished yet
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for RequestResult<'a, T>
impl<'a, T> Send for RequestResult<'a, T> where
T: Send,
impl<'a, T> Sync for RequestResult<'a, T> where
T: Sync,
impl<'a, T> Unpin for RequestResult<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for RequestResult<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more