pub enum WorkerRefusalCode {
Busy,
Invalid,
Unavailable,
Internal,
}Expand description
The worker’s reason, distinct from a route’s admission refusal.
Variants§
Busy
The worker cannot admit more work now.
Invalid
The request cannot be served as supplied.
A dependency or the worker is unavailable.
Internal
The worker encountered an internal failure.
Implementations§
Source§impl WorkerRefusalCode
impl WorkerRefusalCode
Sourcepub const fn caller_name(self) -> &'static str
pub const fn caller_name(self) -> &'static str
The caller’s stable named refusal.
Sourcepub const fn reason_code(self) -> u16
pub const fn reason_code(self) -> u16
Numeric representation on the existing conversation-error wire. The words remain entirely application supplied; classification uses this registry, never a prefix guessed from those words.
Sourcepub fn from_reason_code(reason: u16) -> Option<Self>
pub fn from_reason_code(reason: u16) -> Option<Self>
Recognises only the four allocated conversation-error reasons.
Trait Implementations§
Source§impl Clone for WorkerRefusalCode
impl Clone for WorkerRefusalCode
impl Copy for WorkerRefusalCode
Source§impl Debug for WorkerRefusalCode
impl Debug for WorkerRefusalCode
impl Eq for WorkerRefusalCode
Source§impl PartialEq for WorkerRefusalCode
impl PartialEq for WorkerRefusalCode
impl StructuralPartialEq for WorkerRefusalCode
Auto Trait Implementations§
impl Freeze for WorkerRefusalCode
impl RefUnwindSafe for WorkerRefusalCode
impl Send for WorkerRefusalCode
impl Sync for WorkerRefusalCode
impl Unpin for WorkerRefusalCode
impl UnsafeUnpin for WorkerRefusalCode
impl UnwindSafe for WorkerRefusalCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.