pub struct FtpResponse {
pub code: u16,
pub message: String,
}Expand description
FTP server response with code and message
Fields§
§code: u16§message: StringImplementations§
Source§impl FtpResponse
impl FtpResponse
pub fn is_success(&self) -> bool
pub fn is_intermediate(&self) -> bool
pub fn is_positive_completion(&self) -> bool
pub fn is_positive_preliminary(&self) -> bool
Sourcepub fn class(&self) -> FtpResponseClass
pub fn class(&self) -> FtpResponseClass
Get the response class for this response
Sourcepub fn is_transient_error(&self) -> bool
pub fn is_transient_error(&self) -> bool
Check if this response indicates a transient error (retry-worthy)
Sourcepub fn is_permanent_error(&self) -> bool
pub fn is_permanent_error(&self) -> bool
Check if this response indicates a permanent error (do not retry)
Trait Implementations§
Source§impl Clone for FtpResponse
impl Clone for FtpResponse
Source§fn clone(&self) -> FtpResponse
fn clone(&self) -> FtpResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FtpResponse
impl RefUnwindSafe for FtpResponse
impl Send for FtpResponse
impl Sync for FtpResponse
impl Unpin for FtpResponse
impl UnsafeUnpin for FtpResponse
impl UnwindSafe for FtpResponse
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