pub enum WireContext {
Show 22 variants
None,
Resource,
ResourceAdvertisement,
ResourceRequest,
ResourceHashUpdate,
ResourceProof,
ResourceInitiatorCancel,
ResourceReceiverCancel,
CacheRequest,
Request,
Response,
PathResponse,
Command,
CommandStatus,
Channel,
KeepAlive,
LinkIdentify,
LinkClose,
LinkProof,
LinkRtt,
LinkRequestProof,
Unknown(u8),
}Expand description
The trailing context byte: a sub-type tag the engine routes on. Exhaustive over the values RNS defines, plus Unknown(u8) so an unrecognised byte round-trips unchanged (RNS preserves unknown context bytes). Decoding only ever yields Unknown for bytes outside the named set, so a parsed value is always canonical.
Variants§
None
Resource
ResourceAdvertisement
ResourceRequest
ResourceHashUpdate
ResourceProof
ResourceInitiatorCancel
ResourceReceiverCancel
CacheRequest
Request
Response
PathResponse
Command
CommandStatus
Channel
KeepAlive
LinkIdentify
LinkClose
LinkProof
LinkRtt
LinkRequestProof
Unknown(u8)
Implementations§
Trait Implementations§
Source§impl Clone for WireContext
impl Clone for WireContext
Source§fn clone(&self) -> WireContext
fn clone(&self) -> WireContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WireContext
Source§impl Debug for WireContext
impl Debug for WireContext
impl Eq for WireContext
Source§impl PartialEq for WireContext
impl PartialEq for WireContext
impl StructuralPartialEq for WireContext
Auto Trait Implementations§
impl Freeze for WireContext
impl RefUnwindSafe for WireContext
impl Send for WireContext
impl Sync for WireContext
impl Unpin for WireContext
impl UnsafeUnpin for WireContext
impl UnwindSafe for WireContext
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