pub struct Builder<C = Uncloseable>where
C: IsCloseable,{ /* private fields */ }Expand description
A Builder for Semaphores.
Implementations§
Source§impl<C> Builder<C>where
C: IsCloseable,
impl<C> Builder<C>where
C: IsCloseable,
Sourcepub fn with_state<S: SemaphoreState>(self, state: S) -> Semaphore<S, C>
pub fn with_state<S: SemaphoreState>(self, state: S) -> Semaphore<S, C>
Build the Semaphore with the provided initial state.
Auto Trait Implementations§
impl<C> Freeze for Builder<C>
impl<C> RefUnwindSafe for Builder<C>where
C: RefUnwindSafe,
impl<C> Send for Builder<C>where
C: Send,
impl<C> Sync for Builder<C>where
C: Sync,
impl<C> Unpin for Builder<C>where
C: Unpin,
impl<C> UnwindSafe for Builder<C>where
C: 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