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
sourceimpl Debug for TransferError
impl Debug for TransferError
sourceimpl Display for TransferError
impl Display for TransferError
sourceimpl Error for TransferError
impl Error for TransferError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for TransferError
impl From<Error> for TransferError
sourceimpl From<Error> for TransferError
impl From<Error> for TransferError
sourceimpl From<Error> for TransferError
impl From<Error> for TransferError
sourceimpl From<TransitConnectError> for TransferError
impl From<TransitConnectError> for TransferError
sourcefn from(source: TransitConnectError) -> Self
fn from(source: TransitConnectError) -> Self
Converts to this type from the input type.
sourceimpl From<TransitError> for TransferError
impl From<TransitError> for TransferError
sourcefn from(source: TransitError) -> Self
fn from(source: TransitError) -> Self
Converts to this type from the input type.
sourceimpl From<WormholeError> for TransferError
impl From<WormholeError> for TransferError
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more