Enum constriction::backends::BoundedWriteError [−][src]
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
Expand description
Attempting to write compressed data failed because it would exceeded the finite capacity of the data sink.
Trait Implementations
impl Clone for BoundedWriteError[src]
impl Clone for BoundedWriteError[src]fn clone(&self) -> BoundedWriteError[src]
fn clone(&self) -> BoundedWriteError[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for BoundedWriteError[src]
impl Debug for BoundedWriteError[src]impl Display for BoundedWriteError[src]
impl Display for BoundedWriteError[src]impl Error for BoundedWriteError[src]
impl Error for BoundedWriteError[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl PartialEq<BoundedWriteError> for BoundedWriteError[src]
impl PartialEq<BoundedWriteError> for BoundedWriteError[src]impl Eq for BoundedWriteError[src]
impl StructuralEq for BoundedWriteError[src]
impl StructuralPartialEq for BoundedWriteError[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more