#[repr(u32)]pub enum CapabilityStoreError {
IdNotFound = 1,
IdAlreadyExists = 2,
BadCapability = 3,
WrongType = 4,
NotDuplicatable = 5,
ItemNotFound = 6,
ItemAlreadyExists = 7,
InvalidKey = 8,
InvalidArgs = 9,
UnknownOrdinal_(u32),
}
Expand description
Error returned from methods in CapabilityStore.
Variants§
IdNotFound = 1
IdAlreadyExists = 2
BadCapability = 3
WrongType = 4
NotDuplicatable = 5
ItemNotFound = 6
ItemAlreadyExists = 7
InvalidKey = 8
InvalidArgs = 9
UnknownOrdinal_(u32)
Trait Implementations§
Source§impl Clone for CapabilityStoreError
impl Clone for CapabilityStoreError
Source§fn clone(&self) -> CapabilityStoreError
fn clone(&self) -> CapabilityStoreError
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 CapabilityStoreError
impl Debug for CapabilityStoreError
Source§impl Encodable for CapabilityStoreError
impl Encodable for CapabilityStoreError
Source§type Encoded = WireCapabilityStoreError
type Encoded = WireCapabilityStoreError
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for CapabilityStoreErrorwhere
___E: ?Sized,
impl<___E> Encode<___E> for CapabilityStoreErrorwhere
___E: ?Sized,
Source§impl From<CapabilityStoreError> for WireCapabilityStoreError
impl From<CapabilityStoreError> for WireCapabilityStoreError
Source§fn from(natural: CapabilityStoreError) -> Self
fn from(natural: CapabilityStoreError) -> Self
Converts to this type from the input type.
Source§impl From<WireCapabilityStoreError> for CapabilityStoreError
impl From<WireCapabilityStoreError> for CapabilityStoreError
Source§fn from(wire: WireCapabilityStoreError) -> Self
fn from(wire: WireCapabilityStoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CapabilityStoreError
impl PartialEq for CapabilityStoreError
Source§impl TakeFrom<WireCapabilityStoreError> for CapabilityStoreError
impl TakeFrom<WireCapabilityStoreError> for CapabilityStoreError
Source§fn take_from(from: &WireCapabilityStoreError) -> Self
fn take_from(from: &WireCapabilityStoreError) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for CapabilityStoreError
impl Eq for CapabilityStoreError
impl StructuralPartialEq for CapabilityStoreError
Auto Trait Implementations§
impl Freeze for CapabilityStoreError
impl RefUnwindSafe for CapabilityStoreError
impl Send for CapabilityStoreError
impl Sync for CapabilityStoreError
impl Unpin for CapabilityStoreError
impl UnwindSafe for CapabilityStoreError
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