pub struct AmqpError { /* private fields */ }
Implementations§
source§impl AmqpError
impl AmqpError
pub fn new(err: AmqpError) -> Self
pub fn with_error(err: ErrorCondition) -> Self
pub fn internal_error() -> Self
pub fn not_found() -> Self
pub fn decode_error() -> Self
pub fn invalid_field() -> Self
pub fn not_allowed() -> Self
pub fn not_implemented() -> Self
pub fn text(self, text: &'static str) -> Self
pub fn description<T>(self, text: T) -> Selfwhere
ByteString: From<T>,
pub fn set_description(self, text: ByteString) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AmqpError
impl !RefUnwindSafe for AmqpError
impl Send for AmqpError
impl Sync for AmqpError
impl Unpin for AmqpError
impl !UnwindSafe for AmqpError
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