Enum tokio_beanstalkd::errors::BeanstalkError
source · pub enum BeanstalkError {
BadFormat,
OutOfMemory,
InternalError,
UnknownCommand,
UnexpectedResponse,
// some variants omitted
}
Expand description
Errors that can be returned for any command
Variants§
BadFormat
The client sent a command line that was not well-formed. This can happen if the line does not end with \r\n, if non-numeric characters occur where an integer is expected, if the wrong number of arguments are present, or if the command line is mal-formed in any other way.
This should not happen, if it does please file an issue.
OutOfMemory
The server cannot allocate enough memory for the job. The client should try again later.
InternalError
This indicates a bug in the server. It should never happen. If it does happen, please report it at http://groups.google.com/group/beanstalk-talk.
UnknownCommand
The client sent a command that the server does not know.
This should not happen, if it does please file an issue.
UnexpectedResponse
Trait Implementations§
source§impl Clone for BeanstalkError
impl Clone for BeanstalkError
source§fn clone(&self) -> BeanstalkError
fn clone(&self) -> BeanstalkError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BeanstalkError
impl Debug for BeanstalkError
source§impl Display for BeanstalkError
impl Display for BeanstalkError
source§impl Fail for BeanstalkError
impl Fail for BeanstalkError
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 more