#[non_exhaustive]pub enum WorkspaceDecodeError {
Limit(LimitExceeded),
Malformed(MalformedInput),
Unsupported(Unsupported),
Truncated,
Failed,
}Available on crate feature
caller-workspace only.Expand description
Why a WorkspaceDecoder::step failed. Every variant ends the stream:
later steps return Self::Failed until WorkspaceDecoder::reset.
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.
Limit(LimitExceeded)
A caller-chosen limit refused the stream.
Malformed(MalformedInput)
The input is not a valid zstd stream.
Unsupported(Unsupported)
The input is valid but needs something this decoder does not do.
Truncated
The input was marked final in the middle of a frame.
Failed
An earlier step failed; call WorkspaceDecoder::reset first.
Trait Implementations§
Source§impl Debug for WorkspaceDecodeError
impl Debug for WorkspaceDecodeError
Source§impl Display for WorkspaceDecodeError
impl Display for WorkspaceDecodeError
Source§impl Error for WorkspaceDecodeError
impl Error for WorkspaceDecodeError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WorkspaceDecodeError
impl !UnwindSafe for WorkspaceDecodeError
impl Freeze for WorkspaceDecodeError
impl Send for WorkspaceDecodeError
impl Sync for WorkspaceDecodeError
impl Unpin for WorkspaceDecodeError
impl UnsafeUnpin for WorkspaceDecodeError
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