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> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Sourceยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Sourceยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.