[−][src]Struct ftp_client::status_code::StatusCode
Contains a StatusCodeKind and the corresponding code for it, this is useful on generating error messages and validity of a particular code.
Fields
kind: StatusCodeKind
The StatusCodeKind
code: u16
The integer representing the status code
Methods
impl StatusCode
[src]
pub fn parse(text: &str) -> Self
[src]
Parse a server response into a StatusCode struct.
pub fn is_valid(&self) -> bool
[src]
Returns whether a status code number is valid.
pub fn is_failure(&self) -> bool
[src]
Returns whether a status code number is a failure.
Trait Implementations
impl PartialEq<StatusCode> for StatusCode
[src]
fn eq(&self, other: &StatusCode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for StatusCode
[src]
Auto Trait Implementations
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
impl RefUnwindSafe for StatusCode
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,