Skip to main content

Attach

Trait Attach 

Source
pub trait Attach: Sized {
    // Required methods
    fn try_attach(&self, socket: BorrowedFd<'_>) -> Result<(), Error>;
    fn try_filter(
        &mut self,
        key: Index,
        socket: BorrowedFd<'_>,
    ) -> Result<(), Error>;
}
Expand description

Installs selection and per-socket admission for one routed group.

Required Methods§

Source

fn try_attach(&self, socket: BorrowedFd<'_>) -> Result<(), Error>

Source

fn try_filter( &mut self, key: Index, socket: BorrowedFd<'_>, ) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Attach for Infallible

Source§

fn try_attach(&self, _: BorrowedFd<'_>) -> Result<(), Error>

Source§

fn try_filter(&mut self, _: Index, _: BorrowedFd<'_>) -> Result<(), Error>

Implementors§