#[non_exhaustive]pub enum DestError {
Show 18 variants
DirectiveFieldEmpty,
CantProcessPacketType {
pdu_type: PduType,
directive_type: Option<FileDirectiveType>,
},
FirstPacketNotMetadata,
WrongStepForPdu {
step: TransactionStep,
pdu_type: PduType,
file_directive_type: Option<FileDirectiveType>,
},
RecvdMetadataButIsBusy,
EmptySrcFileField,
EmptyDestFileField,
Pdu(PduError),
Io(Error),
Filestore(FilestoreError),
UnexpectedLargeFileSize,
LostSegmentError(LostSegmentError),
PathConversion(Utf8Error),
PathConcat,
NoRemoteConfigFound(UnsignedByteField),
SendError(GenericSendError),
InvalidRemoteConfig(RemoteEntityConfig),
NotImplemented,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DirectiveFieldEmpty
File directive expected, but none specified
CantProcessPacketType
FirstPacketNotMetadata
WrongStepForPdu
RecvdMetadataButIsBusy
EmptySrcFileField
EmptyDestFileField
Pdu(PduError)
Io(Error)
Available on crate feature
std
only.Filestore(FilestoreError)
UnexpectedLargeFileSize
LostSegmentError(LostSegmentError)
PathConversion(Utf8Error)
PathConcat
NoRemoteConfigFound(UnsignedByteField)
SendError(GenericSendError)
InvalidRemoteConfig(RemoteEntityConfig)
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.
Source§impl From<LostSegmentError> for DestError
impl From<LostSegmentError> for DestError
Source§fn from(source: LostSegmentError) -> Self
fn from(source: LostSegmentError) -> 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