#[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 duplicate 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§impl TryFrom<u8> for RemovedReason
impl TryFrom<u8> for RemovedReason
Source§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
const NAME: &'static str = "RemovedReason"
type Primitive = u8
type Error = TryFromPrimitiveError<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 Freeze for RemovedReason
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