pub struct WrapError<T>(pub T);๐Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
Tuple Fieldsยง
ยง0: T๐Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
Trait Implementationsยง
Sourceยงimpl<E> ViaError<E> for &WrapError<E>
impl<E> ViaError<E> for &WrapError<E>
Sourceยงfn to_server_error(&self) -> ServerFnError<E>
fn to_server_error(&self) -> ServerFnError<E>
๐Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so users should place their custom error type instead of ServerFnError
Converts something into an error.
Sourceยงimpl<E> ViaError<E> for WrapError<E>
impl<E> ViaError<E> for WrapError<E>
Sourceยงfn to_server_error(&self) -> ServerFnError<E>
fn to_server_error(&self) -> ServerFnError<E>
๐Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so users should place their custom error type instead of ServerFnError
Converts something into an error.
Auto Trait Implementationsยง
impl<T> Freeze for WrapError<T>where
T: Freeze,
impl<T> RefUnwindSafe for WrapError<T>where
T: RefUnwindSafe,
impl<T> Send for WrapError<T>where
T: Send,
impl<T> Sync for WrapError<T>where
T: Sync,
impl<T> Unpin for WrapError<T>where
T: Unpin,
impl<T> UnwindSafe for WrapError<T>where
T: UnwindSafe,
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.