pub enum Consumer {
NotFound,
Buried,
NotIgnored,
Beanstalk {
error: BeanstalkError,
},
// some variants omitted
}Expand description
Errors which can occur when acting as a consumer/worker
Variants§
NotFound
If the job does not exist or is not either reserved by the client
Buried
if the server ran out of memory trying to grow the priority queue data structure.
NotIgnored
If the client attempts to ignore the only tube in its watch list.
Beanstalk
Fields
§
error: BeanstalkErrorTrait Implementations§
Source§impl Fail for Consumer
impl Fail for Consumer
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreimpl Copy for Consumer
impl Eq for Consumer
impl StructuralPartialEq for Consumer
Auto Trait Implementations§
impl Freeze for Consumer
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnwindSafe for Consumer
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