pub enum Action {
Continue(PacketContext),
Send(PacketContext, SmallVec<[FaceId; 4]>),
Satisfy(PacketContext),
Drop(DropReason),
Nack(PacketContext, NackReason),
}Expand description
The return value from a pipeline stage.
Ownership-based: Continue returns the context back to the runner.
All other variants consume the context, making it a compiler error to
use the context after it has been handed off.
Variants§
Continue(PacketContext)
Pass context to the next stage.
Send(PacketContext, SmallVec<[FaceId; 4]>)
Forward the packet to the given faces and exit the pipeline.
Satisfy(PacketContext)
Satisfy pending PIT entries and exit the pipeline.
Drop(DropReason)
Drop the packet silently.
Nack(PacketContext, NackReason)
Send a Nack back to the incoming face.
Auto Trait Implementations§
impl !Freeze for Action
impl !RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl !UnwindSafe for Action
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