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: Display + Clone> ViaError<E> for &WrapError<E>
impl<E: Display + Clone> 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> UnsafeUnpin for WrapError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WrapError<T>where
T: UnwindSafe,
Blanket Implementationsยง
Sourceยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Sourceยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Sourceยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> 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<T> LayoutRaw for T
impl<T> LayoutRaw for T
Sourceยงfn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Sourceยงimpl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Sourceยงunsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Sourceยงfn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.