Skip to main content

Source

Trait Source 

Source
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§

Source

const STORAGE: Self::Storage

Required Associated Types§

Required Methods§

Source

fn try_prepare( storage: &mut Self::Storage, plan: Plan, ) -> Result<(Self::Install<'_>, Self::Ready), Plan>

Source

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".

Implementors§