Enum ProvisionError
pub enum ProvisionError {
CredentialRejected,
NetworkNotFound,
NetworkAlreadyExists,
Canceled,
// some variants omitted
}
Expand description
LoWPAN Provisioning Error
Returned by [ProvisioningMonitor.WatchProgress
].
Variants§
CredentialRejected
Provisioning did not successfully complete because the credential was rejected. For example, the key was incorrect.
This may be interpreted as an argument error.
NetworkNotFound
Provisioning did not successfully complete because the no peers on the requested network are in range.
NetworkAlreadyExists
Forming a new network did not successfully complete because the a peer with the requested network identity is in range.
Canceled
This operation was canceled due to an incompatible operation being started before this one was finished.
Implementations§
§impl ProvisionError
impl ProvisionError
pub fn from_primitive(prim: i32) -> Option<ProvisionError>
pub fn from_primitive_allow_unknown(prim: i32) -> ProvisionError
pub fn unknown() -> ProvisionError
pub const fn into_primitive(self) -> i32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for ProvisionError
impl Clone for ProvisionError
§fn clone(&self) -> ProvisionError
fn clone(&self) -> ProvisionError
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 more§impl Debug for ProvisionError
impl Debug for ProvisionError
§impl<D> Decode<ProvisionError, D> for ProvisionErrorwhere
D: ResourceDialect,
impl<D> Decode<ProvisionError, D> for ProvisionErrorwhere
D: ResourceDialect,
§fn new_empty() -> ProvisionError
fn new_empty() -> ProvisionError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ProvisionError, D> for ProvisionErrorwhere
D: ResourceDialect,
impl<D> Encode<ProvisionError, D> for ProvisionErrorwhere
D: ResourceDialect,
§impl Hash for ProvisionError
impl Hash for ProvisionError
§impl Ord for ProvisionError
impl Ord for ProvisionError
§impl PartialEq for ProvisionError
impl PartialEq for ProvisionError
§impl PartialOrd for ProvisionError
impl PartialOrd for ProvisionError
§impl TypeMarker for ProvisionError
impl TypeMarker for ProvisionError
§type Owned = ProvisionError
type Owned = ProvisionError
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for ProvisionError
impl ValueTypeMarker for ProvisionError
§type Borrowed<'a> = ProvisionError
type Borrowed<'a> = ProvisionError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ProvisionError as TypeMarker>::Owned,
) -> <ProvisionError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ProvisionError as TypeMarker>::Owned, ) -> <ProvisionError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for ProvisionError
impl Eq for ProvisionError
impl StructuralPartialEq for ProvisionError
Auto Trait Implementations§
impl Freeze for ProvisionError
impl RefUnwindSafe for ProvisionError
impl Send for ProvisionError
impl Sync for ProvisionError
impl Unpin for ProvisionError
impl UnwindSafe for ProvisionError
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