#[non_exhaustive]pub enum GuardedViewError {
SizeLimit,
Allocation,
EncodingLength,
Decode(DecodeError),
}Available on crate feature
zeroize only.Expand description
An error constructing a GuardedOwnedView.
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.
SizeLimit
The input or encoded message exceeds a size limit.
Allocation
Reserving the wire allocation failed.
EncodingLength
The encoder wrote a different length than it reported.
Decode(DecodeError)
The wire bytes could not be decoded as the selected message.
Trait Implementations§
Source§impl Clone for GuardedViewError
impl Clone for GuardedViewError
Source§impl Debug for GuardedViewError
impl Debug for GuardedViewError
Source§impl Display for GuardedViewError
impl Display for GuardedViewError
impl Eq for GuardedViewError
Source§impl Error for GuardedViewError
impl Error for GuardedViewError
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 From<DecodeError> for GuardedViewError
impl From<DecodeError> for GuardedViewError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GuardedViewError
impl PartialEq for GuardedViewError
impl StructuralPartialEq for GuardedViewError
Auto Trait Implementations§
impl Forget for GuardedViewError
impl Freeze for GuardedViewError
impl Move for GuardedViewError
impl RefUnwindSafe for GuardedViewError
impl Send for GuardedViewError
impl Sync for GuardedViewError
impl Unpin for GuardedViewError
impl UnsafeUnpin for GuardedViewError
impl UnwindSafe for GuardedViewError
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