pub enum EncoderWorkspaceError {
Capacity(CapacityError),
ContextPoisoned,
UnsupportedWorkspaceConfiguration,
InsufficientWorkspace {
required: usize,
provided: usize,
},
InputTooLarge {
maximum: usize,
provided: usize,
},
OutputTooSmall {
required: usize,
provided: usize,
},
SizeOverflow,
}Expand description
Errors reported while creating or using an encoder workspace.
Variants§
Capacity(CapacityError)
ContextPoisoned
A prior encode did not complete. Recreate the context before reuse.
UnsupportedWorkspaceConfiguration
Requested strategy would enter an owned-only entropy path.
InsufficientWorkspace
InputTooLarge
OutputTooSmall
SizeOverflow
Trait Implementations§
Source§impl Clone for EncoderWorkspaceError
impl Clone for EncoderWorkspaceError
impl Copy for EncoderWorkspaceError
Source§impl Debug for EncoderWorkspaceError
impl Debug for EncoderWorkspaceError
Source§impl Display for EncoderWorkspaceError
impl Display for EncoderWorkspaceError
impl Eq for EncoderWorkspaceError
Source§impl Error for EncoderWorkspaceError
Available on crate feature std only.
impl Error for EncoderWorkspaceError
Available on crate feature
std only.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 PartialEq for EncoderWorkspaceError
impl PartialEq for EncoderWorkspaceError
impl StructuralPartialEq for EncoderWorkspaceError
Auto Trait Implementations§
impl Freeze for EncoderWorkspaceError
impl RefUnwindSafe for EncoderWorkspaceError
impl Send for EncoderWorkspaceError
impl Sync for EncoderWorkspaceError
impl Unpin for EncoderWorkspaceError
impl UnsafeUnpin for EncoderWorkspaceError
impl UnwindSafe for EncoderWorkspaceError
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