pub struct ErrorRef<'a> { /* private fields */ }Expand description
Borrowed view of Error that reads fields in place.
Implementations§
Source§impl<'a> ErrorRef<'a>
impl<'a> ErrorRef<'a>
pub fn group(&self) -> &'a str
pub fn code(&self) -> &'a str
pub fn message(&self) -> &'a str
pub fn metadata(&self) -> Option<CborRef<'a>>
pub fn action_id(&self) -> Option<u64>
pub fn actor(&self) -> Option<ActorSpecifierRef<'a>>
Trait Implementations§
impl<'a> Copy for ErrorRef<'a>
Source§impl Encode for ErrorRef<'_>
impl Encode for ErrorRef<'_>
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
The exact encoded length, computed without encoding.
fn encode<S: Sink>(&self, out: &mut S)
fn encode_to_vec(&self) -> Vec<u8> ⓘ
fn encode_to_bytes(&self) -> Bytes
Source§fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
Encodes into the front of
out and returns the number of bytes written. Checks the length
first instead of panicking when out is too short.Auto Trait Implementations§
impl<'a> Freeze for ErrorRef<'a>
impl<'a> RefUnwindSafe for ErrorRef<'a>
impl<'a> Send for ErrorRef<'a>
impl<'a> Sync for ErrorRef<'a>
impl<'a> Unpin for ErrorRef<'a>
impl<'a> UnsafeUnpin for ErrorRef<'a>
impl<'a> UnwindSafe for ErrorRef<'a>
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