pub enum PgmqError {
JsonParsingError(Error),
UrlParsingError(ParseError),
DatabaseError(Error),
InvalidQueueName {
name: String,
},
}Variants§
JsonParsingError(Error)
a json parsing error
UrlParsingError(ParseError)
a url parsing error
DatabaseError(Error)
a database error
InvalidQueueName
a queue name error queue names must be alphanumeric and start with a letter
Trait Implementations§
source§impl Error for PgmqError
impl Error for PgmqError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseError> for PgmqError
impl From<ParseError> for PgmqError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PgmqError
impl Send for PgmqError
impl Sync for PgmqError
impl Unpin for PgmqError
impl !UnwindSafe for PgmqError
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