[][src]Struct sage_mqtt::UTF8String

pub struct UTF8String(pub Vec<u8>);

Text fields in an MQTT paquet are described in UTF-8. Each string in the stream is prefixed with a two-byte size information with MSB first. Because of that, a string cannot be longer that 65,535 bytes. This type can be converted from and to String.

Trait Implementations

impl Debug for UTF8String[src]

impl Decode for UTF8String[src]

impl Default for UTF8String[src]

impl Encode for UTF8String[src]

impl Eq for UTF8String[src]

impl From<String> for UTF8String[src]

impl From<UTF8String> for String[src]

impl PartialEq<UTF8String> for UTF8String[src]

impl StructuralEq for UTF8String[src]

impl StructuralPartialEq for UTF8String[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.