pub struct MqttPacket { /* private fields */ }
Implementations§
Source§impl MqttPacket
impl MqttPacket
pub fn get_packet(&self) -> &MPacket<'_>
Trait Implementations§
Source§impl Clone for MqttPacket
impl Clone for MqttPacket
Source§fn clone(&self) -> MqttPacket
fn clone(&self) -> MqttPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MqttPacket
impl Debug for MqttPacket
Source§impl IntoMqttSubPacket<MConnack> for MqttPacket
impl IntoMqttSubPacket<MConnack> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MConnack>>
Source§impl IntoMqttSubPacket<MConnect<'static>> for MqttPacket
impl IntoMqttSubPacket<MConnect<'static>> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MConnect<'static>>>
Source§impl IntoMqttSubPacket<MDisconnect> for MqttPacket
impl IntoMqttSubPacket<MDisconnect> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MDisconnect>>
Source§impl IntoMqttSubPacket<MPingreq> for MqttPacket
impl IntoMqttSubPacket<MPingreq> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPingreq>>
Source§impl IntoMqttSubPacket<MPingresp> for MqttPacket
impl IntoMqttSubPacket<MPingresp> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPingresp>>
Source§impl IntoMqttSubPacket<MPuback> for MqttPacket
impl IntoMqttSubPacket<MPuback> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPuback>>
Source§impl IntoMqttSubPacket<MPubcomp> for MqttPacket
impl IntoMqttSubPacket<MPubcomp> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPubcomp>>
Source§impl IntoMqttSubPacket<MPublish<'static>> for MqttPacket
impl IntoMqttSubPacket<MPublish<'static>> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPublish<'static>>>
Source§impl IntoMqttSubPacket<MPubrec> for MqttPacket
impl IntoMqttSubPacket<MPubrec> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPubrec>>
Source§impl IntoMqttSubPacket<MPubrel> for MqttPacket
impl IntoMqttSubPacket<MPubrel> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MPubrel>>
Source§impl IntoMqttSubPacket<MSuback<'static>> for MqttPacket
impl IntoMqttSubPacket<MSuback<'static>> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MSuback<'static>>>
Source§impl IntoMqttSubPacket<MSubscribe<'static>> for MqttPacket
impl IntoMqttSubPacket<MSubscribe<'static>> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MSubscribe<'static>>>
Source§impl IntoMqttSubPacket<MUnsuback> for MqttPacket
impl IntoMqttSubPacket<MUnsuback> for MqttPacket
fn into_mqtt_sub_packet(self) -> Option<MqttSubPacket<MUnsuback>>
Auto Trait Implementations§
impl Freeze for MqttPacket
impl RefUnwindSafe for MqttPacket
impl Send for MqttPacket
impl Sync for MqttPacket
impl Unpin for MqttPacket
impl UnwindSafe for MqttPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more