pub struct ServerResponse { /* private fields */ }Expand description
Represents a raw server response, with a status code and the message after it.
Note that usual FTP responses follow the format: STATUS_CODE: MESSAGE.
Implementations§
Source§impl ServerResponse
impl ServerResponse
Sourcepub fn summarize_error(&self, expected: Vec<StatusCodeKind>) -> String
pub fn summarize_error(&self, expected: Vec<StatusCodeKind>) -> String
Summarize an error message, when a response is not one of the expect status codes provided.
Trait Implementations§
Source§impl Debug for ServerResponse
impl Debug for ServerResponse
Source§impl PartialEq for ServerResponse
impl PartialEq for ServerResponse
impl StructuralPartialEq for ServerResponse
Auto Trait Implementations§
impl Freeze for ServerResponse
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnwindSafe for ServerResponse
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