[−][src]Struct sage_mqtt::UTF8String
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]
fn decode<R: Read>(reader: &mut R) -> SageResult<Self>
[src]
impl Default for UTF8String
[src]
fn default() -> UTF8String
[src]
impl Encode for UTF8String
[src]
impl Eq for UTF8String
[src]
impl From<String> for UTF8String
[src]
impl From<UTF8String> for String
[src]
fn from(value: UTF8String) -> Self
[src]
impl PartialEq<UTF8String> for UTF8String
[src]
fn eq(&self, other: &UTF8String) -> bool
[src]
fn ne(&self, other: &UTF8String) -> bool
[src]
impl StructuralEq for UTF8String
[src]
impl StructuralPartialEq for UTF8String
[src]
Auto Trait Implementations
impl RefUnwindSafe for UTF8String
impl Send for UTF8String
impl Sync for UTF8String
impl Unpin for UTF8String
impl UnwindSafe for UTF8String
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>,