pub enum LibfwError {
Http {
status: u16,
url: String,
},
Network(String),
Decompress(String),
Compress(String),
Protocol(String),
Js(String),
Cancelled,
Storage(String),
}Expand description
Errors produced by the WASM engine.
Variants§
Http
The server answered with an unexpected status code.
Network(String)
A network-level failure (fetch rejected, body stream broke, …).
Decompress(String)
The server’s body could not be decompressed.
Compress(String)
An upload chunk could not be compressed.
Protocol(String)
The transfer protocol contract was violated.
Js(String)
A JS callback returned a non-Promise/rejected value.
Cancelled
The task was cancelled by the user.
Storage(String)
An upload file is missing or unreadable.
Implementations§
Trait Implementations§
Source§impl Debug for LibfwError
impl Debug for LibfwError
Source§impl Display for LibfwError
impl Display for LibfwError
Source§impl Error for LibfwError
impl Error for LibfwError
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<CompressError> for LibfwError
impl From<CompressError> for LibfwError
Source§fn from(e: CompressError) -> Self
fn from(e: CompressError) -> Self
Converts to this type from the input type.
Source§impl From<DecompressError> for LibfwError
impl From<DecompressError> for LibfwError
Source§fn from(e: DecompressError) -> Self
fn from(e: DecompressError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LibfwError
impl RefUnwindSafe for LibfwError
impl Send for LibfwError
impl Sync for LibfwError
impl Unpin for LibfwError
impl UnsafeUnpin for LibfwError
impl UnwindSafe for LibfwError
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