Enum dsi_bitstream::traits::CopyError
source · 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)>
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>
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>
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> 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.