pub enum Acquisition<P, B> {
Existing(P),
Build(B),
}Expand description
An admission opportunity: use an existing resource or construct a new one. A build permit reserves capacity before any asynchronous construction.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<P, B> Freeze for Acquisition<P, B>
impl<P, B> RefUnwindSafe for Acquisition<P, B>where
P: RefUnwindSafe,
B: RefUnwindSafe,
impl<P, B> Send for Acquisition<P, B>
impl<P, B> Sync for Acquisition<P, B>
impl<P, B> Unpin for Acquisition<P, B>
impl<P, B> UnsafeUnpin for Acquisition<P, B>where
P: UnsafeUnpin,
B: UnsafeUnpin,
impl<P, B> UnwindSafe for Acquisition<P, B>where
P: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more