Skip to main content

Guard

Trait Guard 

Source
pub trait Guard<C: Context>: Sized {
    // Required methods
    fn socket(
        self,
        slot: <C::Inputs as Context>::Outbound,
        domain: Domain,
        key: C::Key,
    );
    fn accept_multi(
        self,
        listener: <<C as Context>::Inputs as Context>::Target,
        key: C::Key,
    );
    fn recv(
        self,
        slot: <<C as Context>::Inputs as Context>::Target,
        key: C::Key,
    );
    fn recv_msg(self, fd: &<C::Inputs as Context>::Datagram<'_>, key: C::Key);
    fn shutdown(
        self,
        slot: <<C as Context>::Inputs as Context>::Target,
        key: C::Key,
    );
}
Expand description

A reserved native submission slot, consumed before the host commits its flight.

Required Methods§

Source

fn socket( self, slot: <C::Inputs as Context>::Outbound, domain: Domain, key: C::Key, )

Source

fn accept_multi( self, listener: <<C as Context>::Inputs as Context>::Target, key: C::Key, )

Source

fn recv(self, slot: <<C as Context>::Inputs as Context>::Target, key: C::Key)

Source

fn recv_msg(self, fd: &<C::Inputs as Context>::Datagram<'_>, key: C::Key)

Source

fn shutdown( self, slot: <<C as Context>::Inputs as Context>::Target, key: C::Key, )

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§