pub enum EphemeralKeyState {
Disabled,
Stopped,
Started,
Connected,
Accepted,
// some variants omitted
}Expand description
Operational state of the Ephemeral Key Manager. See https://openthread.io/reference/group/api-border-agent for more details.
Variants§
Disabled
Ephemeral Key Manager is disabled.
Stopped
Enabled, but no ephemeral key is in use (not set or started).
Started
Ephemeral key is set. Listening to accept secure connections.
Connected
Session is established with an external commissioner candidate.
Accepted
Session is established and candidate is accepted as full commissioner.
Implementations§
Source§impl EphemeralKeyState
impl EphemeralKeyState
pub fn from_primitive(prim: u32) -> Option<EphemeralKeyState>
pub fn from_primitive_allow_unknown(prim: u32) -> EphemeralKeyState
pub fn unknown() -> EphemeralKeyState
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for EphemeralKeyState
impl Clone for EphemeralKeyState
Source§fn clone(&self) -> EphemeralKeyState
fn clone(&self) -> EphemeralKeyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EphemeralKeyState
Source§impl Debug for EphemeralKeyState
impl Debug for EphemeralKeyState
Source§impl<D> Decode<EphemeralKeyState, D> for EphemeralKeyStatewhere
D: ResourceDialect,
impl<D> Decode<EphemeralKeyState, D> for EphemeralKeyStatewhere
D: ResourceDialect,
Source§fn new_empty() -> EphemeralKeyState
fn new_empty() -> EphemeralKeyState
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<EphemeralKeyState, D> for EphemeralKeyStatewhere
D: ResourceDialect,
impl<D> Encode<EphemeralKeyState, D> for EphemeralKeyStatewhere
D: ResourceDialect,
impl Eq for EphemeralKeyState
Source§impl Hash for EphemeralKeyState
impl Hash for EphemeralKeyState
Source§impl Ord for EphemeralKeyState
impl Ord for EphemeralKeyState
Source§fn cmp(&self, other: &EphemeralKeyState) -> Ordering
fn cmp(&self, other: &EphemeralKeyState) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EphemeralKeyState
impl PartialEq for EphemeralKeyState
Source§impl PartialOrd for EphemeralKeyState
impl PartialOrd for EphemeralKeyState
impl StructuralPartialEq for EphemeralKeyState
Source§impl TypeMarker for EphemeralKeyState
impl TypeMarker for EphemeralKeyState
Source§type Owned = EphemeralKeyState
type Owned = EphemeralKeyState
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 EphemeralKeyState
impl ValueTypeMarker for EphemeralKeyState
Source§type Borrowed<'a> = EphemeralKeyState
type Borrowed<'a> = EphemeralKeyState
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<EphemeralKeyState as TypeMarker>::Owned,
) -> <EphemeralKeyState as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<EphemeralKeyState as TypeMarker>::Owned, ) -> <EphemeralKeyState as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.Auto Trait Implementations§
impl Freeze for EphemeralKeyState
impl RefUnwindSafe for EphemeralKeyState
impl Send for EphemeralKeyState
impl Sync for EphemeralKeyState
impl Unpin for EphemeralKeyState
impl UnsafeUnpin for EphemeralKeyState
impl UnwindSafe for EphemeralKeyState
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