pub struct ReplyTooLarge;Expand description
The error inside FtpError::ConnectionError, with std::io::ErrorKind::InvalidData,
when the server sends a control-connection reply larger than 256 KiB.
Without a bound, a server answering with an endless line or an endless multiline reply (including the greeting, before any authentication) would make the client buffer it without limit. The reply is abandoned half-read, so the connection cannot be used afterwards.
Trait Implementations§
Source§impl Clone for ReplyTooLarge
impl Clone for ReplyTooLarge
impl Copy for ReplyTooLarge
Source§impl Debug for ReplyTooLarge
impl Debug for ReplyTooLarge
Source§impl Display for ReplyTooLarge
impl Display for ReplyTooLarge
impl Eq for ReplyTooLarge
Source§impl Error for ReplyTooLarge
impl Error for ReplyTooLarge
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ReplyTooLarge> for FtpError
impl From<ReplyTooLarge> for FtpError
Source§fn from(err: ReplyTooLarge) -> Self
fn from(err: ReplyTooLarge) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReplyTooLarge
impl PartialEq for ReplyTooLarge
impl StructuralPartialEq for ReplyTooLarge
Auto Trait Implementations§
impl Freeze for ReplyTooLarge
impl RefUnwindSafe for ReplyTooLarge
impl Send for ReplyTooLarge
impl Sync for ReplyTooLarge
impl Unpin for ReplyTooLarge
impl UnsafeUnpin for ReplyTooLarge
impl UnwindSafe for ReplyTooLarge
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