Struct server_fn::error::NoCustomError
source · pub struct NoCustomError;Expand description
An empty value indicating that there is no custom error type associated with this server function.
Trait Implementations§
source§impl Archive for NoCustomError
impl Archive for NoCustomError
§type Archived = ArchivedNoCustomError
type Archived = ArchivedNoCustomError
The archived representation of this type. Read more
§type Resolver = NoCustomErrorResolver
type Resolver = NoCustomErrorResolver
The resolver for this type. It must contain all the additional information from serializing
needed to make the archived type from the normal type.
source§impl Clone for NoCustomError
impl Clone for NoCustomError
source§fn clone(&self) -> NoCustomError
fn clone(&self) -> NoCustomError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NoCustomError
impl Debug for NoCustomError
source§impl<'de> Deserialize<'de> for NoCustomError
impl<'de> Deserialize<'de> for NoCustomError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<__D: Fallible + ?Sized> Deserialize<NoCustomError, __D> for Archived<NoCustomError>
impl<__D: Fallible + ?Sized> Deserialize<NoCustomError, __D> for Archived<NoCustomError>
source§fn deserialize(&self, _: &mut __D) -> Result<NoCustomError, __D::Error>
fn deserialize(&self, _: &mut __D) -> Result<NoCustomError, __D::Error>
Deserializes using the given deserializer
source§impl Display for NoCustomError
impl Display for NoCustomError
source§impl FromStr for NoCustomError
impl FromStr for NoCustomError
source§impl Hash for NoCustomError
impl Hash for NoCustomError
source§impl Ord for NoCustomError
impl Ord for NoCustomError
source§fn cmp(&self, other: &NoCustomError) -> Ordering
fn cmp(&self, other: &NoCustomError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoCustomError
impl PartialEq for NoCustomError
source§impl PartialOrd for NoCustomError
impl PartialOrd for NoCustomError
source§impl Serialize for NoCustomError
impl Serialize for NoCustomError
source§impl ViaError<NoCustomError> for &&&WrapError<()>
impl ViaError<NoCustomError> for &&&WrapError<()>
source§fn to_server_error(&self) -> ServerFnError
fn to_server_error(&self) -> ServerFnError
Converts something into an error.
impl Copy for NoCustomError
impl Eq for NoCustomError
impl StructuralPartialEq for NoCustomError
Auto Trait Implementations§
impl Freeze for NoCustomError
impl RefUnwindSafe for NoCustomError
impl Send for NoCustomError
impl Sync for NoCustomError
impl Unpin for NoCustomError
impl UnwindSafe for NoCustomError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
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> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
source§impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
source§impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
source§impl<T, Request, Err> FromReq<MsgPack, Request, Err> for T
impl<T, Request, Err> FromReq<MsgPack, Request, Err> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<Err>>
async fn from_req(req: Request) -> Result<T, ServerFnError<Err>>
Attempts to deserialize the arguments from a request.
source§impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
source§impl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
source§impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
source§impl<T, Response, Err> FromRes<MsgPack, Response, Err> for T
impl<T, Response, Err> FromRes<MsgPack, Response, Err> for T
source§async fn from_res(res: Response) -> Result<T, ServerFnError<Err>>
async fn from_res(res: Response) -> Result<T, ServerFnError<Err>>
Attempts to deserialize the outputs from a response.
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<CustErr, T, Response> IntoRes<Cbor, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Cbor, Response, CustErr> for T
source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.
source§impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.
source§impl<T, Response, Err> IntoRes<MsgPack, Response, Err> for T
impl<T, Response, Err> IntoRes<MsgPack, Response, Err> for T
source§async fn into_res(self) -> Result<Response, ServerFnError<Err>>
async fn into_res(self) -> Result<Response, ServerFnError<Err>>
Attempts to serialize the output into an HTTP response.
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>
Gets the layout of the type.