pub(crate) struct Semaphore {
pub(crate) semaphore: Semaphore,
pub(crate) bound: usize,
}
Expand description
Channel semaphore is a tuple of the semaphore implementation and a usize
representing the channel bound.
Fields§
§semaphore: Semaphore
§bound: usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Semaphore
impl RefUnwindSafe for Semaphore
impl Send for Semaphore
impl Sync for Semaphore
impl Unpin for Semaphore
impl UnwindSafe for Semaphore
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