Skip to main content

ContextControl

Trait ContextControl 

Source
pub trait ContextControl {
    // Required methods
    fn prepare_drop(&mut self);
    fn register_shutdown_fd(&mut self, fd: BorrowedFd<'_>) -> Result<()>;
    fn reserve_outbound(&mut self, count: u32) -> Result<OutboundReservation>;
    fn reserve_route(&mut self, id: u8) -> bool;
    fn release_route(&mut self, id: u8);
    fn poison_route(&mut self, id: u8);
    fn quiesce(&mut self, targets: &[Token]) -> bool;
    fn submit_option(
        &mut self,
        fd: &Fd<'_>,
        option: impl Into<SocketOption>,
    ) -> Result<(), PushError>;
}

Required Methods§

Source

fn prepare_drop(&mut self)

Source

fn register_shutdown_fd(&mut self, fd: BorrowedFd<'_>) -> Result<()>

Source

fn reserve_outbound(&mut self, count: u32) -> Result<OutboundReservation>

Source

fn reserve_route(&mut self, id: u8) -> bool

Source

fn release_route(&mut self, id: u8)

Source

fn poison_route(&mut self, id: u8)

Source

fn quiesce(&mut self, targets: &[Token]) -> bool

Source

fn submit_option( &mut self, fd: &Fd<'_>, option: impl Into<SocketOption>, ) -> Result<(), PushError>

Queues an option without waiting for its kernel completion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§