pub struct PingrespPacket { /* private fields */ }
Expand description
PINGRESP
packet
Implementations
sourceimpl PingrespPacket
impl PingrespPacket
pub fn new() -> PingrespPacket
Trait Implementations
sourceimpl Clone for PingrespPacket
impl Clone for PingrespPacket
sourcefn clone(&self) -> PingrespPacket
fn clone(&self) -> PingrespPacket
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PingrespPacket
impl Debug for PingrespPacket
sourceimpl DecodablePacket for PingrespPacket
impl DecodablePacket for PingrespPacket
type DecodePacketError = Infallible
sourcefn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
fn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
Decode packet given a FixedHeader
sourceimpl Default for PingrespPacket
impl Default for PingrespPacket
sourcefn default() -> PingrespPacket
fn default() -> PingrespPacket
Returns the “default value” for a type. Read more
sourceimpl EncodablePacket for PingrespPacket
impl EncodablePacket for PingrespPacket
sourcefn fixed_header(&self) -> &FixedHeader
fn fixed_header(&self) -> &FixedHeader
Get a reference to FixedHeader
. All MQTT packet must have a fixed header.
sourcefn encode_packet<W: Write>(&self, writer: &mut W) -> Result<()>
fn encode_packet<W: Write>(&self, writer: &mut W) -> Result<()>
Encodes packet data after fixed header, including variable headers and payload
sourcefn encoded_packet_length(&self) -> u32
fn encoded_packet_length(&self) -> u32
Length in bytes for data after fixed header, including variable headers and payload
sourceimpl From<PingrespPacket> for VariablePacket
impl From<PingrespPacket> for VariablePacket
sourcefn from(pk: PingrespPacket) -> VariablePacket
fn from(pk: PingrespPacket) -> VariablePacket
Performs the conversion.
sourceimpl PartialEq<PingrespPacket> for PingrespPacket
impl PartialEq<PingrespPacket> for PingrespPacket
sourcefn eq(&self, other: &PingrespPacket) -> bool
fn eq(&self, other: &PingrespPacket) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PingrespPacket) -> bool
fn ne(&self, other: &PingrespPacket) -> bool
This method tests for !=
.
impl Eq for PingrespPacket
impl StructuralEq for PingrespPacket
impl StructuralPartialEq for PingrespPacket
Auto Trait Implementations
impl RefUnwindSafe for PingrespPacket
impl Send for PingrespPacket
impl Sync for PingrespPacket
impl Unpin for PingrespPacket
impl UnwindSafe for PingrespPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Decodable for T where
T: DecodablePacket,
impl<T> Decodable for T where
T: DecodablePacket,
type Error = PacketError<T>
type Cond = Option<FixedHeader>
sourceimpl<T> Encodable for T where
T: EncodablePacket,
impl<T> Encodable for T where
T: EncodablePacket,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more