#[repr(u8)]pub enum ClientType {
Permanent = 0,
Ephemeral = 1,
}Available on crate feature
rustcrypto only.Expand description
§9.16.5’s ClientTypeEnum — how available the registered client is.
Variants§
Permanent = 0
“typically resident, always-on, fixed infrastructure in the home” — a hub.
Ephemeral = 1
“mobile or non-resident or not always-on” — a phone that leaves the house.
Implementations§
Source§impl ClientType
impl ClientType
Sourcepub const fn from_value(value: u64) -> Result<Self, Status>
pub const fn from_value(value: u64) -> Result<Self, Status>
Reads a wire value; anything else is CONSTRAINT_ERROR.
Trait Implementations§
Source§impl Clone for ClientType
impl Clone for ClientType
Source§fn clone(&self) -> ClientType
fn clone(&self) -> ClientType
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 ClientType
Source§impl Debug for ClientType
impl Debug for ClientType
Source§impl Default for ClientType
impl Default for ClientType
Source§fn default() -> ClientType
fn default() -> ClientType
Returns the “default value” for a type. Read more
impl Eq for ClientType
Source§impl Hash for ClientType
impl Hash for ClientType
Source§impl PartialEq for ClientType
impl PartialEq for ClientType
impl StructuralPartialEq for ClientType
Auto Trait Implementations§
impl Freeze for ClientType
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnsafeUnpin for ClientType
impl UnwindSafe for ClientType
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