Struct sod_crossbeam::ArrayQueuePopper
source · pub struct ArrayQueuePopper<T> { /* private fields */ }
Expand description
A sod::Service
that pops an element from an underlying [crossbeam::queue::ArrayQueue
].
Implementations§
Trait Implementations§
source§impl<T> Service for ArrayQueuePopper<T>
impl<T> Service for ArrayQueuePopper<T>
type Input = ()
type Output = Option<T>
type Error = Infallible
source§fn process(&self, _: ()) -> Result<Self::Output, Self::Error>
fn process(&self, _: ()) -> Result<Self::Output, Self::Error>
Process an input, producing a
Result<Self::Output, Self::Error>
source§fn into_mut(self) -> ServiceMut<Self>where
Self: Sized,
fn into_mut(self) -> ServiceMut<Self>where Self: Sized,
source§fn into_dyn<'a>(self) -> DynService<'a, Self::Input, Self::Output, Self::Error>where
Self: Sized + 'static,
fn into_dyn<'a>(self) -> DynService<'a, Self::Input, Self::Output, Self::Error>where Self: Sized + 'static,
Convert this
Service
into a DynService
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ArrayQueuePopper<T>
impl<T> Send for ArrayQueuePopper<T>where T: Send,
impl<T> Sync for ArrayQueuePopper<T>where T: Send,
impl<T> Unpin for ArrayQueuePopper<T>
impl<T> !UnwindSafe for ArrayQueuePopper<T>
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