pub enum MqttStringError {
Utf8Error(Utf8Error),
NullCharacter,
TooLargeToEncode,
}Expand description
Error returned when creating MqttString failed.
Variants§
Utf8Error(Utf8Error)
The passed data is not valid UTF-8.
NullCharacter
The passed data contains at least one null character.
TooLargeToEncode
The passed data exceeds the max length of MqttString::MAX_LENGTH.
Trait Implementations§
Source§impl Clone for MqttStringError
impl Clone for MqttStringError
Source§fn clone(&self) -> MqttStringError
fn clone(&self) -> MqttStringError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MqttStringError
impl Debug for MqttStringError
Source§impl From<TooLargeToEncode> for MqttStringError
impl From<TooLargeToEncode> for MqttStringError
Source§fn from(_: TooLargeToEncode) -> Self
fn from(_: TooLargeToEncode) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for MqttStringError
impl From<Utf8Error> for MqttStringError
Source§impl PartialEq for MqttStringError
impl PartialEq for MqttStringError
impl Copy for MqttStringError
impl Eq for MqttStringError
impl StructuralPartialEq for MqttStringError
Auto Trait Implementations§
impl Freeze for MqttStringError
impl RefUnwindSafe for MqttStringError
impl Send for MqttStringError
impl Sync for MqttStringError
impl Unpin for MqttStringError
impl UnsafeUnpin for MqttStringError
impl UnwindSafe for MqttStringError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more