#[non_exhaustive]pub enum WorkspaceConfigError {
WindowLimitOutOfRange {
requested: u64,
},
SizeOverflow,
WorkspaceTooSmall {
needed: usize,
provided: usize,
},
}Available on crate feature
caller-workspace only.Expand description
A workspace size or limit workspace_bytes or WorkspaceDecoder::new
refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WindowLimitOutOfRange
The window limit lies outside 1 KiB ..=
MAX_DECODER_WINDOW_SIZE.
SizeOverflow
The workspace size does not fit in usize on this target.
WorkspaceTooSmall
The workspace slice is shorter than workspace_bytes asks for.
Trait Implementations§
Source§impl Clone for WorkspaceConfigError
impl Clone for WorkspaceConfigError
impl Copy for WorkspaceConfigError
Source§impl Debug for WorkspaceConfigError
impl Debug for WorkspaceConfigError
Source§impl Display for WorkspaceConfigError
impl Display for WorkspaceConfigError
impl Eq for WorkspaceConfigError
Source§impl Error for WorkspaceConfigError
impl Error for WorkspaceConfigError
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 WorkspaceConfigError
impl PartialEq for WorkspaceConfigError
impl StructuralPartialEq for WorkspaceConfigError
Auto Trait Implementations§
impl Freeze for WorkspaceConfigError
impl RefUnwindSafe for WorkspaceConfigError
impl Send for WorkspaceConfigError
impl Sync for WorkspaceConfigError
impl Unpin for WorkspaceConfigError
impl UnsafeUnpin for WorkspaceConfigError
impl UnwindSafe for WorkspaceConfigError
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