pub struct StatusResponse<'a> {
pub tag: Option<&'a str>,
pub status: Status,
pub code: Option<ResponseCode<'a>>,
pub text: &'a str,
}Expand description
A status response: <tag|*> <status> [code] text.
Fields§
§tag: Option<&'a str>The command tag this response answers, or None for an untagged (*) response.
status: StatusThe status condition (OK, NO, BAD, PREAUTH, BYE).
code: Option<ResponseCode<'a>>Optional machine-readable response code in [...], if present.
text: &'a strHuman-readable response text following the status (and code).
Trait Implementations§
Source§impl<'a> Debug for StatusResponse<'a>
impl<'a> Debug for StatusResponse<'a>
impl<'a> Eq for StatusResponse<'a>
Source§impl<'a> PartialEq for StatusResponse<'a>
impl<'a> PartialEq for StatusResponse<'a>
Source§fn eq(&self, other: &StatusResponse<'a>) -> bool
fn eq(&self, other: &StatusResponse<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for StatusResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for StatusResponse<'a>
impl<'a> RefUnwindSafe for StatusResponse<'a>
impl<'a> Send for StatusResponse<'a>
impl<'a> Sync for StatusResponse<'a>
impl<'a> Unpin for StatusResponse<'a>
impl<'a> UnsafeUnpin for StatusResponse<'a>
impl<'a> UnwindSafe for StatusResponse<'a>
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