pub struct WorkerInjector<T, C = ()> { /* private fields */ }Trait Implementations§
Source§impl<T, C> Clone for WorkerInjector<T, C>
impl<T, C> Clone for WorkerInjector<T, C>
Source§impl<T: MMItem, C> Injector for WorkerInjector<T, C>
impl<T: MMItem, C> Injector for WorkerInjector<T, C>
type InputItem = T
type Inner = ()
type Context = Worker<T, C>
fn new(_: Self::Inner, data: Self::Context) -> Self
fn inner(&self) -> &Self::Inner
fn wrap( &self, _: Self::InputItem, ) -> Result<<Self::Inner as Injector>::InputItem, WorkerError>
fn push(&self, item: T) -> Result<(), WorkerError>
Auto Trait Implementations§
impl<T, C> Freeze for WorkerInjector<T, C>
impl<T, C = ()> !RefUnwindSafe for WorkerInjector<T, C>
impl<T, C> Send for WorkerInjector<T, C>
impl<T, C> Sync for WorkerInjector<T, C>
impl<T, C> Unpin for WorkerInjector<T, C>
impl<T, C = ()> !UnwindSafe for WorkerInjector<T, C>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more