pub enum CopyError<RE: Error + Send + Sync + 'static, WE: Error + Send + Sync + 'static> {
ReadError(RE),
WriteError(WE),
}
Expand description
The error returned by the bit copy methods BitRead::copy_to
and BitWrite::copy_from
.
It can be a read or a write error, depending on which stream (source or destination) generated the error.
Variants§
Trait Implementations§
Source§impl<RE: Clone + Error + Send + Sync + 'static, WE: Clone + Error + Send + Sync + 'static> Clone for CopyError<RE, WE>
impl<RE: Clone + Error + Send + Sync + 'static, WE: Clone + Error + Send + Sync + 'static> Clone for CopyError<RE, WE>
Source§impl<RE: Debug + Error + Send + Sync + 'static, WE: Debug + Error + Send + Sync + 'static> Debug for CopyError<RE, WE>
impl<RE: Debug + Error + Send + Sync + 'static, WE: Debug + Error + Send + Sync + 'static> Debug for CopyError<RE, WE>
Source§impl<RE: Error + Send + Sync + 'static, WE: Error + Send + Sync + 'static> Display for CopyError<RE, WE>
impl<RE: Error + Send + Sync + 'static, WE: Error + Send + Sync + 'static> Display for CopyError<RE, WE>
Source§impl<RE: Error + Send + Sync + 'static, WE: Error + Send + Sync + 'static> Error for CopyError<RE, WE>
impl<RE: Error + Send + Sync + 'static, WE: Error + Send + Sync + 'static> Error for CopyError<RE, WE>
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()
Auto Trait Implementations§
impl<RE, WE> Freeze for CopyError<RE, WE>
impl<RE, WE> RefUnwindSafe for CopyError<RE, WE>where
RE: RefUnwindSafe,
WE: RefUnwindSafe,
impl<RE, WE> Send for CopyError<RE, WE>
impl<RE, WE> Sync for CopyError<RE, WE>
impl<RE, WE> Unpin for CopyError<RE, WE>
impl<RE, WE> UnwindSafe for CopyError<RE, WE>where
RE: UnwindSafe,
WE: 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
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.