Struct lifx_core::ProtocolHeader
source · [−]Fields
reserved: u64
64 bits: Reserved
typ: u16
16 bits: Message type determines the payload being used
See also Message::get_num
reserved2: u16
16 bits: Reserved
Implementations
sourceimpl ProtocolHeader
impl ProtocolHeader
Trait Implementations
sourceimpl Clone for ProtocolHeader
impl Clone for ProtocolHeader
sourcefn clone(&self) -> ProtocolHeader
fn clone(&self) -> ProtocolHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProtocolHeader
impl Debug for ProtocolHeader
sourceimpl PartialEq<ProtocolHeader> for ProtocolHeader
impl PartialEq<ProtocolHeader> for ProtocolHeader
sourcefn eq(&self, other: &ProtocolHeader) -> bool
fn eq(&self, other: &ProtocolHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtocolHeader) -> bool
fn ne(&self, other: &ProtocolHeader) -> bool
This method tests for !=
.
impl Copy for ProtocolHeader
impl Eq for ProtocolHeader
impl StructuralEq for ProtocolHeader
impl StructuralPartialEq for ProtocolHeader
Auto Trait Implementations
impl RefUnwindSafe for ProtocolHeader
impl Send for ProtocolHeader
impl Sync for ProtocolHeader
impl Unpin for ProtocolHeader
impl UnwindSafe for ProtocolHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more