Struct cloudmqtt::mqtt_packet::MqttPacket
source · 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 copy 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 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 RefUnwindSafe for MqttPacket
impl Send for MqttPacket
impl Sync for MqttPacket
impl Unpin for MqttPacket
impl UnwindSafe for MqttPacket
Blanket Implementations§
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§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>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§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