Struct TopicBuf
pub struct TopicBuf(MqttString);Available on crate feature
alloc only.Expand description
An owned, validated MQTT topic name.
This is the owned counterpart to Topic, analogous to
PathBuf → Path.
Tuple Fields§
§0: MqttStringImplementations§
Methods from Deref<Target = Topic>§
pub fn as_mqtt_str(&self) -> &MqttStr
pub fn as_mqtt_str(&self) -> &MqttStr
View the topic as an MqttStr.
Trait Implementations§
§impl TryFrom<MqttString> for TopicBuf
impl TryFrom<MqttString> for TopicBuf
§type Error = TopicError
type Error = TopicError
The type returned in the event of a conversion error.
§fn try_from(value: MqttString) -> Result<Self, Self::Error>
fn try_from(value: MqttString) -> Result<Self, Self::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§
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