pub struct ArrayQueueForcePusher<T> { /* private fields */ }Expand description
A sod::Service that force pushes input to an underlying crossbeam::queue::ArrayQueue.
Implementations§
Source§impl<T> ArrayQueueForcePusher<T>
impl<T> ArrayQueueForcePusher<T>
pub fn new(q: Arc<ArrayQueue<T>>) -> Self
Trait Implementations§
Source§impl<T> Service for ArrayQueueForcePusher<T>
impl<T> Service for ArrayQueueForcePusher<T>
type Input = T
type Output = Option<T>
type Error = Infallible
Source§fn process(&self, input: T) -> Result<Self::Output, Self::Error>
fn process(&self, input: T) -> 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_async(self) -> ServiceAsync<Self>
fn into_async(self) -> ServiceAsync<Self>
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 DynServiceAuto Trait Implementations§
impl<T> Freeze for ArrayQueueForcePusher<T>
impl<T> RefUnwindSafe for ArrayQueueForcePusher<T>
impl<T> Send for ArrayQueueForcePusher<T>where
T: Send,
impl<T> Sync for ArrayQueueForcePusher<T>where
T: Send,
impl<T> Unpin for ArrayQueueForcePusher<T>
impl<T> UnwindSafe for ArrayQueueForcePusher<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