#[repr(u8)]pub enum AlertPayload {
StatusOk = 0,
Alert = 255,
}Expand description
@typedef AlertPayload
@param {number} STATUS_OK 0x00
@param {number} ALERT 0xFF
@description <https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-payload>Variants§
Trait Implementations§
Source§impl Clone for AlertPayload
impl Clone for AlertPayload
Source§fn clone(&self) -> AlertPayload
fn clone(&self) -> AlertPayload
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 AlertPayload
Source§impl Debug for AlertPayload
impl Debug for AlertPayload
impl Eq for AlertPayload
Source§impl PartialEq for AlertPayload
impl PartialEq for AlertPayload
impl StructuralPartialEq for AlertPayload
Auto Trait Implementations§
impl Freeze for AlertPayload
impl RefUnwindSafe for AlertPayload
impl Send for AlertPayload
impl Sync for AlertPayload
impl Unpin for AlertPayload
impl UnsafeUnpin for AlertPayload
impl UnwindSafe for AlertPayload
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