Struct TopicBuf
pub struct TopicBuf(MqttString);Expand description
An owned, validated MQTT topic name.
This is the owned counterpart to Topic, analogous to
PathBuf -> Path.
Tuple Fields§
§0: MqttStringImplementations§
Trait Implementations§
Source§impl TryFrom<MqttString> for TopicBuf
impl TryFrom<MqttString> for TopicBuf
Source§type Error = TopicError
type Error = TopicError
The type returned in the event of a conversion error.
Source§fn try_from(
value: MqttString,
) -> Result<TopicBuf, <TopicBuf as TryFrom<MqttString>>::Error>
fn try_from( value: MqttString, ) -> Result<TopicBuf, <TopicBuf as TryFrom<MqttString>>::Error>
Performs the conversion.
impl Eq for TopicBuf
impl StructuralPartialEq for TopicBuf
Auto Trait Implementations§
impl Freeze for TopicBuf
impl RefUnwindSafe for TopicBuf
impl Send for TopicBuf
impl Sync for TopicBuf
impl Unpin for TopicBuf
impl UnwindSafe for TopicBuf
Blanket Implementations§
§impl<T> AsUncased for T
impl<T> AsUncased for T
§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert
self to an [UncasedStr].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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more