Skip to main content

WorkerPreparation

Struct WorkerPreparation 

Source
pub struct WorkerPreparation<Source, Role, Worker, Plan>
where Source: WorkerSource<Role, Worker, Plan>, Worker: Behavior + Send, Plan: ActivationPlan,
{ /* private fields */ }
Expand description

Complete result of source work after one accepted preparation start.

Auto Trait Implementations§

§

impl<Source, Role, Worker, Plan> Freeze for WorkerPreparation<Source, Role, Worker, Plan>
where Source: Freeze, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: Freeze, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: Freeze,

§

impl<Source, Role, Worker, Plan> RefUnwindSafe for WorkerPreparation<Source, Role, Worker, Plan>
where Source: RefUnwindSafe, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: RefUnwindSafe, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: RefUnwindSafe, Role: RefUnwindSafe, Worker: RefUnwindSafe, Plan: RefUnwindSafe,

§

impl<Source, Role, Worker, Plan> Send for WorkerPreparation<Source, Role, Worker, Plan>
where Role: Sync + Send,

§

impl<Source, Role, Worker, Plan> Sync for WorkerPreparation<Source, Role, Worker, Plan>
where Source: Sync, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: Sync, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: Sync, Role: Sync + Send, Worker: Sync, Plan: Sync,

§

impl<Source, Role, Worker, Plan> Unpin for WorkerPreparation<Source, Role, Worker, Plan>
where Source: Unpin, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: Unpin, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: Unpin, Worker: Unpin, Plan: Unpin,

§

impl<Source, Role, Worker, Plan> UnsafeUnpin for WorkerPreparation<Source, Role, Worker, Plan>
where Source: UnsafeUnpin, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: UnsafeUnpin, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: UnsafeUnpin,

§

impl<Source, Role, Worker, Plan> UnwindSafe for WorkerPreparation<Source, Role, Worker, Plan>
where Source: UnwindSafe, <Source as WorkerSource<Role, Worker, Plan>>::WorkerRejection: UnwindSafe, <Source as WorkerSource<Role, Worker, Plan>>::SourceRejection: UnwindSafe, Role: RefUnwindSafe, Worker: UnwindSafe, Plan: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.