pub enum DestError {
Show 16 variants
DirectiveFieldEmpty,
CantProcessPacketType {
pdu_type: PduType,
directive_type: Option<FileDirectiveType>,
},
WrongStateForFileData,
WrongStateForEof,
RecvdMetadataButIsBusy,
EmptySrcFileField,
EmptyDestFileField,
PacketToSendLeft,
Pdu(PduError),
Io(Error),
Filestore(FilestoreError),
PathConversion(Utf8Error),
PathConcat,
NoRemoteCfgFound(UnsignedByteField),
SendError(GenericSendError),
NotImplemented,
}
Available on crate feature
alloc
only.Variants§
DirectiveFieldEmpty
File directive expected, but none specified
CantProcessPacketType
WrongStateForFileData
WrongStateForEof
RecvdMetadataButIsBusy
EmptySrcFileField
EmptyDestFileField
PacketToSendLeft
Pdu(PduError)
Io(Error)
Available on crate feature
std
only.Filestore(FilestoreError)
PathConversion(Utf8Error)
PathConcat
NoRemoteCfgFound(UnsignedByteField)
SendError(GenericSendError)
NotImplemented
Trait Implementations§
Source§impl Error for DestError
impl Error for DestError
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<FilestoreError> for DestError
impl From<FilestoreError> for DestError
Source§fn from(source: FilestoreError) -> Self
fn from(source: FilestoreError) -> Self
Converts to this type from the input type.
Source§impl From<GenericSendError> for DestError
impl From<GenericSendError> for DestError
Source§fn from(source: GenericSendError) -> Self
fn from(source: GenericSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DestError
impl !RefUnwindSafe for DestError
impl Send for DestError
impl Sync for DestError
impl Unpin for DestError
impl !UnwindSafe for DestError
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