pub enum FtpResponseClass {
PositivePreliminary,
PositiveCompletion,
PositiveIntermediate,
TransientNegative,
PermanentNegative,
Unknown,
}Expand description
FTP response code classification
Variants§
PositivePreliminary
Positive Preliminary (1xx): Command accepted, waiting for confirmation
PositiveCompletion
Positive Completion (2xx): Command completed successfully
PositiveIntermediate
Positive Intermediate (3xx): Command accepted, additional info needed
TransientNegative
Transient Negative (4xx): Temporary failure, retry may succeed
PermanentNegative
Permanent Negative (5xx): Permanent failure, do not retry
Unknown
Unknown/Invalid response code
Implementations§
Source§impl FtpResponseClass
impl FtpResponseClass
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if this response class indicates success (1xx-3xx)
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Check if this is a retry-worthy transient error (4xx)
Sourcepub fn is_permanent(&self) -> bool
pub fn is_permanent(&self) -> bool
Check if this is a permanent failure (5xx)
Trait Implementations§
Source§impl Clone for FtpResponseClass
impl Clone for FtpResponseClass
Source§fn clone(&self) -> FtpResponseClass
fn clone(&self) -> FtpResponseClass
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 moreimpl Copy for FtpResponseClass
Source§impl Debug for FtpResponseClass
impl Debug for FtpResponseClass
impl Eq for FtpResponseClass
Source§impl PartialEq for FtpResponseClass
impl PartialEq for FtpResponseClass
impl StructuralPartialEq for FtpResponseClass
Auto Trait Implementations§
impl Freeze for FtpResponseClass
impl RefUnwindSafe for FtpResponseClass
impl Send for FtpResponseClass
impl Sync for FtpResponseClass
impl Unpin for FtpResponseClass
impl UnsafeUnpin for FtpResponseClass
impl UnwindSafe for FtpResponseClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.