[−][src]Struct sage_mqtt::TwoByteInteger
Two bytes data values are 16-bits unsigned integer represented in
big-endian. That means the most significant byte (MSB) is presented first
on the stream.
This type can be converted from u8
and u16
and to u8
, u16
and u32
.
Trait Implementations
impl Debug for TwoByteInteger
[src]
impl Decode for TwoByteInteger
[src]
fn decode<R: Read>(reader: &mut R) -> SageResult<Self>
[src]
impl Default for TwoByteInteger
[src]
fn default() -> TwoByteInteger
[src]
impl Encode for TwoByteInteger
[src]
impl Eq for TwoByteInteger
[src]
impl From<TwoByteInteger> for u16
[src]
fn from(value: TwoByteInteger) -> Self
[src]
impl From<TwoByteInteger> for u32
[src]
fn from(value: TwoByteInteger) -> Self
[src]
impl From<TwoByteInteger> for u64
[src]
fn from(value: TwoByteInteger) -> Self
[src]
impl From<u16> for TwoByteInteger
[src]
impl From<u8> for TwoByteInteger
[src]
impl PartialEq<TwoByteInteger> for TwoByteInteger
[src]
fn eq(&self, other: &TwoByteInteger) -> bool
[src]
fn ne(&self, other: &TwoByteInteger) -> bool
[src]
impl StructuralEq for TwoByteInteger
[src]
impl StructuralPartialEq for TwoByteInteger
[src]
Auto Trait Implementations
impl RefUnwindSafe for TwoByteInteger
impl Send for TwoByteInteger
impl Sync for TwoByteInteger
impl Unpin for TwoByteInteger
impl UnwindSafe for TwoByteInteger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,