pub struct BufferDecodeError {
pub context: &'static str,
}Expand description
An error produced while decoding a value buffer.
Consumers treat a decode failure as a producer/consumer contract violation (both sides are generated from the same IDL), so this surfaces through the same channel as a producer panic: a trap, not a typed domain error.
Fields§
§context: &'static strWhat the reader was trying to decode when the buffer ran out or held invalid data.
Trait Implementations§
Source§impl Clone for BufferDecodeError
impl Clone for BufferDecodeError
Source§fn clone(&self) -> BufferDecodeError
fn clone(&self) -> BufferDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferDecodeError
impl Debug for BufferDecodeError
Source§impl Display for BufferDecodeError
impl Display for BufferDecodeError
impl Eq for BufferDecodeError
Source§impl Error for BufferDecodeError
impl Error for BufferDecodeError
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 BufferDecodeError
impl PartialEq for BufferDecodeError
impl StructuralPartialEq for BufferDecodeError
Auto Trait Implementations§
impl Freeze for BufferDecodeError
impl RefUnwindSafe for BufferDecodeError
impl Send for BufferDecodeError
impl Sync for BufferDecodeError
impl Unpin for BufferDecodeError
impl UnsafeUnpin for BufferDecodeError
impl UnwindSafe for BufferDecodeError
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