Enum magic_wormhole::transfer::TransferError
source · #[non_exhaustive]pub enum TransferError {
Show 14 variants
AckError,
Checksum,
FileSize {
sent_size: u64,
file_size: u64,
},
FilesystemSkew,
UnsupportedOffer,
PeerError(String),
ProtocolJson(Error),
ProtocolMsgpack(Error),
Protocol(Box<str>),
ProtocolUnexpectedMessage(Box<str>, Box<dyn Debug + Send + Sync>),
Wormhole(WormholeError),
TransitConnect(TransitConnectError),
Transit(TransitError),
IO(Error),
}
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.
AckError
Checksum
FileSize
FilesystemSkew
UnsupportedOffer
PeerError(String)
ProtocolJson(Error)
Some deserialization went wrong, we probably got some garbage
ProtocolMsgpack(Error)
Protocol(Box<str>)
A generic string message for “something went wrong”, i.e. the server sent some bullshit message order
ProtocolUnexpectedMessage(Box<str>, Box<dyn Debug + Send + Sync>)
Wormhole(WormholeError)
TransitConnect(TransitConnectError)
Transit(TransitError)
IO(Error)
Trait Implementations§
source§impl Debug for TransferError
impl Debug for TransferError
source§impl Display for TransferError
impl Display for TransferError
source§impl Error for TransferError
impl Error for TransferError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for TransferError
impl From<Error> for TransferError
source§impl From<Error> for TransferError
impl From<Error> for TransferError
source§impl From<Error> for TransferError
impl From<Error> for TransferError
source§impl From<TransitConnectError> for TransferError
impl From<TransitConnectError> for TransferError
source§fn from(source: TransitConnectError) -> Self
fn from(source: TransitConnectError) -> Self
Converts to this type from the input type.
source§impl From<TransitError> for TransferError
impl From<TransitError> for TransferError
source§fn from(source: TransitError) -> Self
fn from(source: TransitError) -> Self
Converts to this type from the input type.
source§impl From<WormholeError> for TransferError
impl From<WormholeError> for TransferError
source§fn from(source: WormholeError) -> Self
fn from(source: WormholeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl !UnwindSafe for TransferError
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