Skip to main content

IngestPacketOutcome

Enum IngestPacketOutcome 

Source
pub enum IngestPacketOutcome<'p> {
Show 39 variants Announce(AnnounceIngest), Delivery { delivery: Delivery<'p>, proof: ProofObligation, }, OwesDecrypt, OwesRatchetDecrypt, OwesAnnounceVerify, Proof(ProofIngest), Forward(PacketToForward<'p>), AnswerPathRequest { destination: DestinationHash, }, ScheduledPathResponse { destination: DestinationHash, }, PathResponseScheduleRejected { destination: DestinationHash, rejection: ScheduleRejection, }, ForwardRecursivePathRequest { destination: DestinationHash, id: [u8; 16], }, ForwardBoundaryPathRequest { destination: DestinationHash, id: [u8; 16], }, ForwardLocalClientPathRequest { destination: DestinationHash, id: [u8; 16], }, RelayPathRequestToLocalClients { destination: DestinationHash, id: [u8; 16], }, PeerIdentified { link_id: LinkId, identity: IdentityHash, }, RequestReceived { destination: DestinationHash, link_id: LinkId, request_id: RequestId, requester: Option<IdentityHash>, path_hash: RequestPathHash, requested_at: InstantMillis, rtt: RttMillis, data: &'p [u8], }, ResponseSettled { id: CommandId, delivered: PacketReceiptDelivered, link_id: LinkId, request_id: RequestId, data: &'p [u8], }, ResponseTooLarge { id: CommandId, link_id: LinkId, request_id: RequestId, }, ChannelDataReceived { link_id: LinkId, message_type: MessageType, sequence: ChannelSequence, payload: &'p [u8], packet_hash: PacketHash, }, OwesResourceParts(ResourcePartRequest<'p>), ResourceDelivered { id: CommandId, link_id: LinkId, correlation: ResourceCorrelation, last_segment: bool, }, OwesResourcePull { link_id: LinkId, hash: ResourceHash, }, ResourceOffered { link_id: LinkId, original_hash: ResourceHash, accepted: AcceptedResource<'p>, }, ResourceTooLarge { link_id: LinkId, hash: ResourceHash, settled_request: Option<CommandId>, }, OwesResourceAssembly { link_id: LinkId, hash: ResourceHash, }, ResourceDeadlineAdvanced, IncomingResourceFailed { link_id: LinkId, hash: ResourceHash, cause: ResourceFailureCause, settled_request: Option<CommandId>, }, ResourceRejectedByPeer { id: CommandId, link_id: LinkId, correlation: ResourceCorrelation, }, TransportedLinkRequest { header: WirePacketHeader, body: ForwardedLinkRequestBody, fire_on: InterfaceId, }, OwesLinkProof(AcceptedLinkRequest), OwesLinkRtt(LinkRttOwed), OwesLinkProofVerify, LinkActivated { link_id: LinkId, rtt_millis: u64, }, OwesKeepaliveEcho { link_id: LinkId, }, LinkClosedByPeer { link_id: LinkId, }, OwesLinkClose { link_id: LinkId, reason: LinkClosedReason, }, LinkInterfaceMismatch { link_id: LinkId, attached_interface: InterfaceId, arrived_on: InterfaceId, }, TunnelObserved { expires: InstantMillis, }, Ignored(IgnoreReason),
}

Variants§

§

Announce(AnnounceIngest)

§

Delivery

Fields

§delivery: Delivery<'p>
§

OwesDecrypt

§

OwesRatchetDecrypt

§

OwesAnnounceVerify

§

Proof(ProofIngest)

§

Forward(PacketToForward<'p>)

§

AnswerPathRequest

Fields

§destination: DestinationHash
§

ScheduledPathResponse

Fields

§destination: DestinationHash
§

PathResponseScheduleRejected

Fields

§destination: DestinationHash
§

ForwardRecursivePathRequest

RNS DISCOVER_PATHS_FOR.

Fields

§destination: DestinationHash
§id: [u8; 16]
§

ForwardBoundaryPathRequest

Fields

§destination: DestinationHash
§id: [u8; 16]
§

ForwardLocalClientPathRequest

Fields

§destination: DestinationHash
§id: [u8; 16]
§

RelayPathRequestToLocalClients

Fields

§destination: DestinationHash
§id: [u8; 16]
§

PeerIdentified

Fields

§link_id: LinkId
§identity: IdentityHash
§

RequestReceived

Fields

§destination: DestinationHash
§link_id: LinkId
§request_id: RequestId
§requested_at: InstantMillis
§data: &'p [u8]
§

ResponseSettled

Fields

§link_id: LinkId
§request_id: RequestId
§data: &'p [u8]
§

ResponseTooLarge

Fields

§link_id: LinkId
§request_id: RequestId
§

ChannelDataReceived

Fields

§link_id: LinkId
§message_type: MessageType
§payload: &'p [u8]
§packet_hash: PacketHash
§

OwesResourceParts(ResourcePartRequest<'p>)

§

ResourceDelivered

Fields

§link_id: LinkId
§last_segment: bool
§

OwesResourcePull

Fields

§link_id: LinkId
§

ResourceOffered

RNS 1.4.2 ACCEPT_APP callback point.

Fields

§link_id: LinkId
§original_hash: ResourceHash
§accepted: AcceptedResource<'p>
§

ResourceTooLarge

Fields

§link_id: LinkId
§settled_request: Option<CommandId>
§

OwesResourceAssembly

Fields

§link_id: LinkId
§

ResourceDeadlineAdvanced

§

IncomingResourceFailed

Fields

§link_id: LinkId
§settled_request: Option<CommandId>
§

ResourceRejectedByPeer

Fields

§link_id: LinkId
§

TransportedLinkRequest

§

OwesLinkProof(AcceptedLinkRequest)

§

OwesLinkRtt(LinkRttOwed)

§

OwesLinkProofVerify

§

LinkActivated

Fields

§link_id: LinkId
§rtt_millis: u64
§

OwesKeepaliveEcho

Fields

§link_id: LinkId
§

LinkClosedByPeer

Fields

§link_id: LinkId
§

OwesLinkClose

Fields

§link_id: LinkId
§

LinkInterfaceMismatch

Fields

§link_id: LinkId
§attached_interface: InterfaceId
§arrived_on: InterfaceId
§

TunnelObserved

Fields

§

Ignored(IgnoreReason)

Trait Implementations§

Source§

impl<'p> Clone for IngestPacketOutcome<'p>

Source§

fn clone(&self) -> IngestPacketOutcome<'p>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'p> Copy for IngestPacketOutcome<'p>

Source§

impl<'p> Debug for IngestPacketOutcome<'p>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'p> Eq for IngestPacketOutcome<'p>

Source§

impl<'p> PartialEq for IngestPacketOutcome<'p>

Source§

fn eq(&self, other: &IngestPacketOutcome<'p>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'p> StructuralPartialEq for IngestPacketOutcome<'p>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.