Struct ssip_client_async::StatusLine
source · pub struct StatusLine {
pub code: u16,
pub message: String,
}
Expand description
Command status line
Consists in a 3-digits code and a message. It can be a success or a failure.
Examples:
- 216 OK OUTPUT MODULE SET
- 409 ERR RATE TOO HIGH
Fields§
§code: u16
§message: String
Trait Implementations§
source§impl Debug for StatusLine
impl Debug for StatusLine
source§impl Display for StatusLine
impl Display for StatusLine
source§impl PartialEq<StatusLine> for StatusLine
impl PartialEq<StatusLine> for StatusLine
source§fn eq(&self, other: &StatusLine) -> bool
fn eq(&self, other: &StatusLine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StatusLine
impl StructuralEq for StatusLine
impl StructuralPartialEq for StatusLine
Auto Trait Implementations§
impl RefUnwindSafe for StatusLine
impl Send for StatusLine
impl Sync for StatusLine
impl Unpin for StatusLine
impl UnwindSafe for StatusLine
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