Enum constriction::backends::BoundedWriteError
source · pub enum BoundedWriteError {
OutOfSpace,
}
Expand description
Error type for data sinks with a finite capacity.
This is currently used as the WriteError
in the implementation of WriteWords
for
Cursor
but it should also be used in the
implementation of WriteWords
for custom types where appropriate.
If you use this error type for a data sink then you may also want to implement
BoundedWriteWords
for it (if the capacity is known upfront).
Variants§
OutOfSpace
Attempting to write compressed data failed because it would exceeded the finite capacity of the data sink.
Trait Implementations§
source§impl Clone for BoundedWriteError
impl Clone for BoundedWriteError
source§fn clone(&self) -> BoundedWriteError
fn clone(&self) -> BoundedWriteError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BoundedWriteError
impl Debug for BoundedWriteError
source§impl Display for BoundedWriteError
impl Display for BoundedWriteError
source§impl Error for BoundedWriteError
impl Error for BoundedWriteError
1.30.0 · 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()
source§impl PartialEq for BoundedWriteError
impl PartialEq for BoundedWriteError
source§fn eq(&self, other: &BoundedWriteError) -> bool
fn eq(&self, other: &BoundedWriteError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BoundedWriteError
impl StructuralEq for BoundedWriteError
impl StructuralPartialEq for BoundedWriteError
Auto Trait Implementations§
impl RefUnwindSafe for BoundedWriteError
impl Send for BoundedWriteError
impl Sync for BoundedWriteError
impl Unpin for BoundedWriteError
impl UnwindSafe for BoundedWriteError
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