pub enum TopicPathError {
Empty,
NullChar,
}Expand description
Errors returned when constructing a TopicPath from a topic string
(MQTT §4.7.3 well-formedness).
Variants§
Empty
The topic was empty; a topic name must have at least one character.
NullChar
The topic contained the null character (U+0000), which is forbidden.
Trait Implementations§
Source§impl Clone for TopicPathError
impl Clone for TopicPathError
Source§fn clone(&self) -> TopicPathError
fn clone(&self) -> TopicPathError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TopicPathError
impl Debug for TopicPathError
Source§impl Display for TopicPathError
impl Display for TopicPathError
impl Eq for TopicPathError
Source§impl Error for TopicPathError
impl Error for TopicPathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TopicPathError> for TopicMatchError
impl From<TopicPathError> for TopicMatchError
Source§fn from(source: TopicPathError) -> Self
fn from(source: TopicPathError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopicPathError
impl PartialEq for TopicPathError
impl StructuralPartialEq for TopicPathError
Auto Trait Implementations§
impl Freeze for TopicPathError
impl RefUnwindSafe for TopicPathError
impl Send for TopicPathError
impl Sync for TopicPathError
impl Unpin for TopicPathError
impl UnsafeUnpin for TopicPathError
impl UnwindSafe for TopicPathError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.