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§
Source§impl ProvisionError
impl ProvisionError
pub fn from_primitive(prim: i32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: i32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> i32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for ProvisionError
impl Clone for ProvisionError
Source§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 moreSource§impl Debug for ProvisionError
impl Debug for ProvisionError
Source§impl<D: ResourceDialect> Decode<ProvisionError, D> for ProvisionError
impl<D: ResourceDialect> Decode<ProvisionError, D> for ProvisionError
Source§impl<D: ResourceDialect> Encode<ProvisionError, D> for ProvisionError
impl<D: ResourceDialect> Encode<ProvisionError, D> for ProvisionError
Source§impl Hash for ProvisionError
impl Hash for ProvisionError
Source§impl Ord for ProvisionError
impl Ord for ProvisionError
Source§fn cmp(&self, other: &ProvisionError) -> Ordering
fn cmp(&self, other: &ProvisionError) -> 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 ProvisionError
impl PartialEq for ProvisionError
Source§impl PartialOrd for ProvisionError
impl PartialOrd for ProvisionError
Source§impl TypeMarker for ProvisionError
impl TypeMarker for ProvisionError
Source§type Owned = ProvisionError
type Owned = ProvisionError
The owned Rust type which this FIDL type decodes into.
Source§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.
Source§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
.Source§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 moreSource§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.Source§impl ValueTypeMarker for ProvisionError
impl ValueTypeMarker for ProvisionError
Source§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 moreimpl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)