pub struct ServerError {
pub error_type: ServerErrorType,
pub sub_type: Option<String>,
pub message: String,
pub resource: ServerErrorResource,
}Expand description
An error frame from the server, every field exactly as sent (ERR-01). The server keeps the connection open after it sends one.
Fields§
§error_type: ServerErrorType§sub_type: Option<String>The command that the error answers, such as "SUB" or "PRES_LIST",
or None when the server named none.
message: StringThe server’s own text, for people to read. Never parse it.
resource: ServerErrorResourceTrait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
impl Eq for ServerError
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
impl UnwindSafe for ServerError
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