Skip to main content

Source

Trait Source 

Source
pub trait Source<C: Context> {
    type Raw: Lower<Domain = Domain>;

    const GROUP: u16;

    // Required methods
    fn target(slot: C::Target) -> <Self::Raw as Lower>::Target;
    fn outbound(slot: C::Outbound) -> <Self::Raw as Lower>::Outbound;
    fn datagram<'d>(fd: &C::Datagram<'d>) -> <Self::Raw as Lower>::Datagram;
}
Expand description

Selects native requests and converts their proven input representations.

Required Associated Constants§

Required Associated Types§

Source

type Raw: Lower<Domain = Domain>

Required Methods§

Source

fn target(slot: C::Target) -> <Self::Raw as Lower>::Target

Source

fn outbound(slot: C::Outbound) -> <Self::Raw as Lower>::Outbound

Source

fn datagram<'d>(fd: &C::Datagram<'d>) -> <Self::Raw as Lower>::Datagram

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§