pub struct Reply {
pub code: u16,
pub lines: Vec<String>,
}Expand description
One complete reply from the server.
Fields§
§code: u16§lines: Vec<String>The text of each line, without the code and the separator.
Implementations§
Source§impl Reply
impl Reply
Sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
2xx: it worked.
Sourcepub fn is_intermediate(&self) -> bool
pub fn is_intermediate(&self) -> bool
3xx: the server wants more input before it will answer properly.
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
4xx: try again later. 5xx means never.
Trait Implementations§
impl Eq for Reply
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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