pub enum GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,{
V3_1_1Publish(GenericPublish<PacketIdType>),
V3_1_1Pubrel(GenericPubrel<PacketIdType>),
V5_0Publish(GenericPublish<PacketIdType>),
V5_0Pubrel(GenericPubrel<PacketIdType>),
}
Variants§
V3_1_1Publish(GenericPublish<PacketIdType>)
V3_1_1Pubrel(GenericPubrel<PacketIdType>)
V5_0Publish(GenericPublish<PacketIdType>)
V5_0Pubrel(GenericPubrel<PacketIdType>)
Implementations§
Source§impl<PacketIdType> GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Sourcepub fn packet_type(&self) -> PacketType
pub fn packet_type(&self) -> PacketType
Get the packet type
Sourcepub fn response_packet(&self) -> ResponsePacket
pub fn response_packet(&self) -> ResponsePacket
Get the response packet type for this store packet
Trait Implementations§
Source§impl<PacketIdType> Clone for GenericStorePacket<PacketIdType>
impl<PacketIdType> Clone for GenericStorePacket<PacketIdType>
Source§fn clone(&self) -> GenericStorePacket<PacketIdType>
fn clone(&self) -> GenericStorePacket<PacketIdType>
Returns a duplicate 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<PacketIdType> Debug for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> Debug for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> Display for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> Display for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> From<GenericStorePacket<PacketIdType>> for GenericPacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> From<GenericStorePacket<PacketIdType>> for GenericPacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§fn from(store_packet: GenericStorePacket<PacketIdType>) -> Self
fn from(store_packet: GenericStorePacket<PacketIdType>) -> Self
Converts to this type from the input type.
Source§impl<PacketIdType> GenericPacketDisplay for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> GenericPacketDisplay for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> GenericPacketTrait for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> GenericPacketTrait for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> PartialEq for GenericStorePacket<PacketIdType>
impl<PacketIdType> PartialEq for GenericStorePacket<PacketIdType>
Source§fn eq(&self, other: &GenericStorePacket<PacketIdType>) -> bool
fn eq(&self, other: &GenericStorePacket<PacketIdType>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<PacketIdType> Serialize for GenericStorePacket<PacketIdType>
impl<PacketIdType> Serialize for GenericStorePacket<PacketIdType>
Source§impl<PacketIdType> TryFrom<GenericPublish<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> TryFrom<GenericPublish<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> TryFrom<GenericPublish<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> TryFrom<GenericPublish<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> TryFrom<GenericPubrel<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> TryFrom<GenericPubrel<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Source§impl<PacketIdType> TryFrom<GenericPubrel<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> TryFrom<GenericPubrel<PacketIdType>> for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
impl<PacketIdType> Eq for GenericStorePacket<PacketIdType>
impl<PacketIdType> StructuralPartialEq for GenericStorePacket<PacketIdType>where
PacketIdType: IsPacketId + Serialize,
Auto Trait Implementations§
impl<PacketIdType> Freeze for GenericStorePacket<PacketIdType>
impl<PacketIdType> RefUnwindSafe for GenericStorePacket<PacketIdType>
impl<PacketIdType> Send for GenericStorePacket<PacketIdType>
impl<PacketIdType> Sync for GenericStorePacket<PacketIdType>
impl<PacketIdType> Unpin for GenericStorePacket<PacketIdType>
impl<PacketIdType> UnwindSafe for GenericStorePacket<PacketIdType>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.