Skip to main content

Acquire

Trait Acquire 

Source
pub trait Acquire<L, P: Copy>: Create {
    type Range;
    type Resources: Cleanup<P>;

    // Required method
    fn acquire<const FILES: u32, R>(
        submit: NonZero<u32>,
        complete: NonZero<u32>,
        defer: bool,
        files: U32<1, FILES>,
        range: Option<U32<1, { _ }>>,
    ) -> Result<(Self, Option<<Self as Acquire<L, P>>::Range>), Failure<<Self as Create>::Setup, <Self as Create>::Map, P, <Self as Acquire<L, P>>::Resources, R>>;
}
Expand description

Acquires the ring and retains every partially admitted native resource.

Required Associated Types§

Required Methods§

Source

fn acquire<const FILES: u32, R>( submit: NonZero<u32>, complete: NonZero<u32>, defer: bool, files: U32<1, FILES>, range: Option<U32<1, { _ }>>, ) -> Result<(Self, Option<<Self as Acquire<L, P>>::Range>), Failure<<Self as Create>::Setup, <Self as Create>::Map, P, <Self as Acquire<L, P>>::Resources, R>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§