pub struct InvalidPermission(pub String);Expand description
The string is not a Permission.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for InvalidPermission
impl Debug for InvalidPermission
Source§impl Display for InvalidPermission
impl Display for InvalidPermission
Source§impl Error for InvalidPermission
impl Error for InvalidPermission
1.30.0 · Source§fn 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.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidPermission
impl PartialEq for InvalidPermission
Source§fn eq(&self, other: &InvalidPermission) -> bool
fn eq(&self, other: &InvalidPermission) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidPermission
Auto Trait Implementations§
impl Freeze for InvalidPermission
impl RefUnwindSafe for InvalidPermission
impl Send for InvalidPermission
impl Sync for InvalidPermission
impl Unpin for InvalidPermission
impl UnsafeUnpin for InvalidPermission
impl UnwindSafe for InvalidPermission
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§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.