pub trait ToPacketId {
// Required method
fn to_packet_id(&self) -> Result<PacketId, Error>;
}
Expand description
A trait to get a PacketId
for a given value.
Required Methods§
Sourcefn to_packet_id(&self) -> Result<PacketId, Error>
fn to_packet_id(&self) -> Result<PacketId, Error>
Get the PacketId
for a given value.