[][src]Struct sage_mqtt::TwoByteInteger

pub struct TwoByteInteger(pub u16);

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]

impl Default for TwoByteInteger[src]

impl Encode for TwoByteInteger[src]

impl Eq for TwoByteInteger[src]

impl From<TwoByteInteger> for u16[src]

impl From<TwoByteInteger> for u32[src]

impl From<TwoByteInteger> for u64[src]

impl From<u16> for TwoByteInteger[src]

impl From<u8> for TwoByteInteger[src]

impl PartialEq<TwoByteInteger> for TwoByteInteger[src]

impl StructuralEq for TwoByteInteger[src]

impl StructuralPartialEq for TwoByteInteger[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.