pub trait Lower: Sized {
type Target;
type Outbound;
type Domain;
type Datagram;
type Borrowed<'a>: Borrow<'a, Target = Self::Target, Buffer = Prefix<'a, { bounded::MAX }>>
where Self: 'a;
// Required methods
fn socket(slot: Self::Outbound, domain: Self::Domain) -> Self;
fn accept_multi(listener: Self::Target) -> Self;
fn recv<const GROUP: u16>(slot: Self::Target) -> Self;
fn recv_msg<const GROUP: u16>(datagram: Self::Datagram) -> Self;
fn shutdown(slot: Self::Target) -> Self;
}Expand description
Native requests whose input borrows are consumed during lowering.
Required Associated Types§
type Target
type Outbound
type Domain
type Datagram
type Borrowed<'a>: Borrow<'a, Target = Self::Target, Buffer = Prefix<'a, { bounded::MAX }>>where
Self: 'a,
Required Methods§
fn socket(slot: Self::Outbound, domain: Self::Domain) -> Self
fn accept_multi(listener: Self::Target) -> Self
fn recv<const GROUP: u16>(slot: Self::Target) -> Self
fn recv_msg<const GROUP: u16>(datagram: Self::Datagram) -> Self
fn shutdown(slot: Self::Target) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".