pub enum PacketContext {
Show 21 variants
None = 0,
Resource = 1,
ResourceAdvrtisement = 2,
ResourceRequest = 3,
ResourceHashUpdate = 4,
ResourceProof = 5,
ResourceInitiatorCancel = 6,
ResourceReceiverCancel = 7,
CacheRequest = 8,
Request = 9,
Response = 10,
PathResponse = 11,
Command = 12,
CommandStatus = 13,
Channel = 14,
KeepAlive = 250,
LinkIdentify = 251,
LinkClose = 252,
LinkProof = 253,
LinkRTT = 254,
LinkRequestProof = 255,
}Variants§
None = 0
Resource = 1
ResourceAdvrtisement = 2
ResourceRequest = 3
ResourceHashUpdate = 4
ResourceProof = 5
ResourceInitiatorCancel = 6
ResourceReceiverCancel = 7
CacheRequest = 8
Request = 9
Response = 10
PathResponse = 11
Command = 12
CommandStatus = 13
Channel = 14
KeepAlive = 250
LinkIdentify = 251
LinkClose = 252
LinkProof = 253
LinkRTT = 254
LinkRequestProof = 255
Implementations§
Source§impl PacketContext
impl PacketContext
pub fn deserialize( buffer: &mut InputBuffer<'_>, ) -> Result<PacketContext, RnsError>
Trait Implementations§
Source§impl Clone for PacketContext
impl Clone for PacketContext
Source§fn clone(&self) -> PacketContext
fn clone(&self) -> PacketContext
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 Debug for PacketContext
impl Debug for PacketContext
Source§impl From<u8> for PacketContext
impl From<u8> for PacketContext
Source§impl PartialEq for PacketContext
impl PartialEq for PacketContext
Source§impl Serialize for PacketContext
impl Serialize for PacketContext
impl Copy for PacketContext
impl Eq for PacketContext
impl StructuralPartialEq for PacketContext
Auto Trait Implementations§
impl Freeze for PacketContext
impl RefUnwindSafe for PacketContext
impl Send for PacketContext
impl Sync for PacketContext
impl Unpin for PacketContext
impl UnsafeUnpin for PacketContext
impl UnwindSafe for PacketContext
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