Skip to main content

dope_sys/io/request/
source.rs

1use crate::io::{
2    request::{Context, Lower},
3    socket,
4};
5
6/// Selects native requests and converts their proven input representations.
7pub trait Source<C: Context> {
8    type Raw: Lower<Domain = socket::Domain>;
9    const GROUP: u16;
10
11    fn target(slot: C::Target) -> <Self::Raw as Lower>::Target;
12    fn outbound(slot: C::Outbound) -> <Self::Raw as Lower>::Outbound;
13    fn datagram<'d>(fd: &C::Datagram<'d>) -> <Self::Raw as Lower>::Datagram;
14}