pub trait Source {
type Storage;
type Install<'a>: Attach;
type Ready;
type Lease<'a>: AsFd;
const STORAGE: Self::Storage;
// Required methods
fn try_prepare(
storage: &mut Self::Storage,
plan: Plan,
) -> Result<(Self::Install<'_>, Self::Ready), Plan>;
fn lease<'a>(ready: &Self::Ready, socket: BorrowedFd<'a>) -> Self::Lease<'a>;
}Expand description
Selects routing authority without exposing the native program owner.
Required Associated Constants§
Required Associated Types§
Required Methods§
fn try_prepare( storage: &mut Self::Storage, plan: Plan, ) -> Result<(Self::Install<'_>, Self::Ready), Plan>
fn lease<'a>(ready: &Self::Ready, socket: BorrowedFd<'a>) -> Self::Lease<'a>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".