pub enum WorkerRelayError {
QueueClosed,
ResponseDropped,
Rejected(TransitStatus),
}Variants§
Trait Implementations§
Source§impl Debug for WorkerRelayError
impl Debug for WorkerRelayError
Source§impl Display for WorkerRelayError
impl Display for WorkerRelayError
Source§impl Error for WorkerRelayError
impl Error for WorkerRelayError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TightBeamError> for WorkerRelayError
impl From<TightBeamError> for WorkerRelayError
Source§fn from(err: TightBeamError) -> Self
fn from(err: TightBeamError) -> Self
Converts to this type from the input type.
Source§impl From<TransitStatus> for WorkerRelayError
impl From<TransitStatus> for WorkerRelayError
Source§fn from(err: TransitStatus) -> Self
fn from(err: TransitStatus) -> Self
Converts to this type from the input type.
Source§impl From<WorkerRelayError> for TightBeamError
impl From<WorkerRelayError> for TightBeamError
Source§fn from(err: WorkerRelayError) -> Self
fn from(err: WorkerRelayError) -> Self
Converts to this type from the input type.
Source§impl From<WorkerRelayError> for TransitStatus
impl From<WorkerRelayError> for TransitStatus
Source§fn from(err: WorkerRelayError) -> Self
fn from(err: WorkerRelayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkerRelayError
impl RefUnwindSafe for WorkerRelayError
impl Send for WorkerRelayError
impl Sync for WorkerRelayError
impl Unpin for WorkerRelayError
impl UnsafeUnpin for WorkerRelayError
impl UnwindSafe for WorkerRelayError
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> 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