pub struct FtpResponse {
pub code: u16,
pub message: String,
}Expand description
FTP 响应结构体
Fields§
§code: u16FTP 响应码(3位数字)
message: String响应消息文本
Implementations§
Source§impl FtpResponse
impl FtpResponse
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
检查是否为成功响应(1xx-3xx)
Sourcepub fn is_intermediate(&self) -> bool
pub fn is_intermediate(&self) -> bool
检查是否为中间响应(1xx)
Sourcepub fn is_positive_completion(&self) -> bool
pub fn is_positive_completion(&self) -> bool
检查是否为正向完成响应(2xx)
Sourcepub fn is_positive_preliminary(&self) -> bool
pub fn is_positive_preliminary(&self) -> bool
检查是否为正向预备响应(1xx)
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