pub enum StreamError<E> {
Crypto(CryptoError),
Host(E),
TooLarge,
}Expand description
Stream failure: ours or the host’s.
Host errors deliberately remain distinct from ours: one host has
std::io::Error, another JavaScript exceptions; normalizing them
here would discard the cause exactly where it is needed.
Variants§
Crypto(CryptoError)
Cryptography: key, algorithm, buffer capacity.
Host(E)
Host source or sink.
TooLarge
File exceeds the format’s addressable size.
Trait Implementations§
Source§impl<E: Debug> Debug for StreamError<E>
impl<E: Debug> Debug for StreamError<E>
Source§impl<E: Display> Display for StreamError<E>
impl<E: Display> Display for StreamError<E>
Source§impl<E: Debug + Display> Error for StreamError<E>
impl<E: Debug + Display> Error for StreamError<E>
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<E> From<CryptoError> for StreamError<E>
impl<E> From<CryptoError> for StreamError<E>
Source§fn from(err: CryptoError) -> Self
fn from(err: CryptoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for StreamError<E>where
E: Freeze,
impl<E> RefUnwindSafe for StreamError<E>where
E: RefUnwindSafe,
impl<E> Send for StreamError<E>where
E: Send,
impl<E> Sync for StreamError<E>where
E: Sync,
impl<E> Unpin for StreamError<E>where
E: Unpin,
impl<E> UnsafeUnpin for StreamError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for StreamError<E>where
E: UnwindSafe,
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