pub struct BlockingWrap<R: BlockingRbRef, const P: bool, const C: bool> { /* private fields */ }Implementations§
Source§impl<R: BlockingRbRef> BlockingWrap<R, false, true>
impl<R: BlockingRbRef> BlockingWrap<R, false, true>
pub fn is_closed(&self) -> bool
pub fn set_timeout(&mut self, timeout: Option<Duration>)
pub fn timeout(&self) -> Option<Duration>
pub fn wait_occupied(&mut self, count: usize) -> Result<(), WaitError>
pub fn pop(&mut self) -> Result<<Self as Observer>::Item, WaitError>
pub fn pop_all_iter(&mut self) -> PopAllIter<'_, R> ⓘ
Source§impl<R: BlockingRbRef> BlockingWrap<R, false, true>
impl<R: BlockingRbRef> BlockingWrap<R, false, true>
Source§impl<R: BlockingRbRef> BlockingWrap<R, true, false>
impl<R: BlockingRbRef> BlockingWrap<R, true, false>
pub fn is_closed(&self) -> bool
pub fn set_timeout(&mut self, timeout: Option<Duration>)
pub fn timeout(&self) -> Option<Duration>
pub fn wait_vacant(&mut self, count: usize) -> Result<(), WaitError>
pub fn push( &mut self, item: <Self as Observer>::Item, ) -> Result<(), (WaitError, <Self as Observer>::Item)>
pub fn push_all_iter<I: Iterator<Item = <Self as Observer>::Item>>( &mut self, iter: I, ) -> usize
Source§impl<R: BlockingRbRef> BlockingWrap<R, true, false>
impl<R: BlockingRbRef> BlockingWrap<R, true, false>
pub fn push_exact(&mut self, slice: &[<Self as Observer>::Item]) -> usize
Trait Implementations§
Source§impl<R: BlockingRbRef, const P: bool, const C: bool> AsMut<BlockingWrap<R, P, C>> for BlockingWrap<R, P, C>
impl<R: BlockingRbRef, const P: bool, const C: bool> AsMut<BlockingWrap<R, P, C>> for BlockingWrap<R, P, C>
Source§impl<R: BlockingRbRef, const P: bool, const C: bool> AsRef<BlockingWrap<R, P, C>> for BlockingWrap<R, P, C>
impl<R: BlockingRbRef, const P: bool, const C: bool> AsRef<BlockingWrap<R, P, C>> for BlockingWrap<R, P, C>
Source§impl<R: BlockingRbRef, const P: bool, const C: bool> Based for BlockingWrap<R, P, C>
impl<R: BlockingRbRef, const P: bool, const C: bool> Based for BlockingWrap<R, P, C>
Source§impl<R: BlockingRbRef, const P: bool, const C: bool> Wrap for BlockingWrap<R, P, C>
impl<R: BlockingRbRef, const P: bool, const C: bool> Wrap for BlockingWrap<R, P, C>
Auto Trait Implementations§
impl<R, const P: bool, const C: bool> !Freeze for BlockingWrap<R, P, C>
impl<R, const P: bool, const C: bool> !RefUnwindSafe for BlockingWrap<R, P, C>
impl<R, const P: bool, const C: bool> Send for BlockingWrap<R, P, C>where
R: Send,
impl<R, const P: bool, const C: bool> !Sync for BlockingWrap<R, P, C>
impl<R, const P: bool, const C: bool> Unpin for BlockingWrap<R, P, C>where
R: Unpin,
impl<R, const P: bool, const C: bool> UnwindSafe for BlockingWrap<R, P, C>where
R: 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