Enum
PinError
pub enum PinError {
AccessDenied,
TooShort,
}Variants
AccessDenied
TooShort
Trait Implementations
impl Archive for PinError
impl Archive for PinError
type Archived = ArchivedPinError
type Archived = ArchivedPinError
The archived representation of this type. Read more
type Resolver = PinErrorResolver
type Resolver = PinErrorResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl Debug for PinError
impl Debug for PinError
impl<__D: Fallible + ?Sized> Deserialize<PinError, __D> for Archived<PinError>
impl<__D: Fallible + ?Sized> Deserialize<PinError, __D> for Archived<PinError>
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<PinError, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<PinError, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl Display for PinError
impl Display for PinError
impl Error for PinError
impl Error for PinError
1.30.0fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
1.0.0fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl From<AccessDenied> for PinError
impl From<AccessDenied> for PinError
fn from(_: AccessDenied) -> Self
fn from(_: AccessDenied) -> Self
Converts to this type from the input type.