Enum flic_rust_client::RemovedReason
source · #[repr(u8)]pub enum RemovedReason {
RemovedByThisClient = 0,
ForceDisconnectedByThisClient = 1,
ForceDisconnectedByOtherClient = 2,
ButtonIsPrivate = 3,
VerifyTimeout = 4,
InternetBackendError = 5,
InvalidData = 6,
CouldntLoadDevice = 7,
DeletedByThisClient = 8,
DeletedByOtherClient = 9,
ButtonBelongsToOtherPartner = 10,
DeletedFromButton = 11,
}Variants§
RemovedByThisClient = 0
ForceDisconnectedByThisClient = 1
ForceDisconnectedByOtherClient = 2
ButtonIsPrivate = 3
VerifyTimeout = 4
InternetBackendError = 5
InvalidData = 6
CouldntLoadDevice = 7
DeletedByThisClient = 8
DeletedByOtherClient = 9
ButtonBelongsToOtherPartner = 10
DeletedFromButton = 11
Trait Implementations§
source§impl Clone for RemovedReason
impl Clone for RemovedReason
source§fn clone(&self) -> RemovedReason
fn clone(&self) -> RemovedReason
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 RemovedReason
impl Debug for RemovedReason
source§impl From<RemovedReason> for u8
impl From<RemovedReason> for u8
source§fn from(enum_value: RemovedReason) -> Self
fn from(enum_value: RemovedReason) -> Self
Converts to this type from the input type.
source§impl Hash for RemovedReason
impl Hash for RemovedReason
source§impl PartialEq for RemovedReason
impl PartialEq for RemovedReason
source§fn eq(&self, other: &RemovedReason) -> bool
fn eq(&self, other: &RemovedReason) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for RemovedReason
impl TryFrom<u8> for RemovedReason
§type Error = TryFromPrimitiveError<RemovedReason>
type Error = TryFromPrimitiveError<RemovedReason>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for RemovedReason
impl TryFromPrimitive for RemovedReason
type Primitive = u8
type Error = TryFromPrimitiveError<RemovedReason>
const NAME: &'static str = "RemovedReason"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RemovedReason
impl Eq for RemovedReason
impl StructuralPartialEq for RemovedReason
Auto Trait Implementations§
impl RefUnwindSafe for RemovedReason
impl Send for RemovedReason
impl Sync for RemovedReason
impl Unpin for RemovedReason
impl UnwindSafe for RemovedReason
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