Skip to main content

WorkerChangeRejection

Struct WorkerChangeRejection 

Source
pub struct WorkerChangeRejection<Key, Worker, Plan, Reason> {
    pub key: Key,
    pub submission: WorkerSubmission<Worker, Plan>,
    pub reason: Reason,
}
Expand description

Complete worker change returned when admission is rejected.

Fields§

§key: Key

Submitted application key.

§submission: WorkerSubmission<Worker, Plan>

Submitted worker and its exact activation work.

§reason: Reason

Operation-specific rejection reason.

Trait Implementations§

Source§

impl<Key: Debug, Worker: Debug, Plan: Debug, Reason: Debug> Debug for WorkerChangeRejection<Key, Worker, Plan, Reason>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Key: PartialEq, Worker: PartialEq, Plan: PartialEq, Reason: PartialEq> PartialEq for WorkerChangeRejection<Key, Worker, Plan, Reason>

Source§

fn eq(&self, other: &WorkerChangeRejection<Key, Worker, Plan, Reason>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Key: Eq, Worker: Eq, Plan: Eq, Reason: Eq> Eq for WorkerChangeRejection<Key, Worker, Plan, Reason>

Source§

impl<Key, Worker, Plan, Reason> StructuralPartialEq for WorkerChangeRejection<Key, Worker, Plan, Reason>

Auto Trait Implementations§

§

impl<Key, Worker, Plan, Reason> Freeze for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: Freeze, Reason: Freeze, Worker: Freeze, Plan: Freeze,

§

impl<Key, Worker, Plan, Reason> RefUnwindSafe for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: RefUnwindSafe, Reason: RefUnwindSafe, Worker: RefUnwindSafe, Plan: RefUnwindSafe,

§

impl<Key, Worker, Plan, Reason> Send for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: Send, Reason: Send, Worker: Send, Plan: Send,

§

impl<Key, Worker, Plan, Reason> Sync for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: Sync, Reason: Sync, Worker: Sync, Plan: Sync,

§

impl<Key, Worker, Plan, Reason> Unpin for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: Unpin, Reason: Unpin, Worker: Unpin, Plan: Unpin,

§

impl<Key, Worker, Plan, Reason> UnsafeUnpin for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: UnsafeUnpin, Reason: UnsafeUnpin, Worker: UnsafeUnpin, Plan: UnsafeUnpin,

§

impl<Key, Worker, Plan, Reason> UnwindSafe for WorkerChangeRejection<Key, Worker, Plan, Reason>
where Key: UnwindSafe, Reason: UnwindSafe, 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.