pub struct Spsc<T, const N: usize> { /* private fields */ }
Implementations§
Source§impl<T, const N: usize> Spsc<T, N>
impl<T, const N: usize> Spsc<T, N>
pub const fn new() -> Self
pub fn take_sender(&self) -> Option<Sender<'_, T, N>>
pub fn take_recver(&self) -> Option<Receiver<'_, T, N>>
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T])
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for Spsc<T, N>
impl<T, const N: usize> RefUnwindSafe for Spsc<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Spsc<T, N>where
T: Send,
impl<T, const N: usize> Sync for Spsc<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Spsc<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Spsc<T, N>where
T: 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