pub struct MessageTooShortSnafu<__T0, __T1, __T2> {
pub operation: __T0,
pub expected: __T1,
pub received: __T2,
}
Expand description
SNAFU context selector for the ProtocolError::MessageTooShort
variant
Fields§
§operation: __T0
§expected: __T1
§received: __T2
Implementations§
Source§impl<__T0, __T1, __T2> MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> MessageTooShortSnafu<__T0, __T1, __T2>
Sourcepub fn build(self) -> ProtocolError
pub fn build(self) -> ProtocolError
Consume the selector and return the associated error
Trait Implementations§
Source§impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0: Clone, __T1: Clone, __T2: Clone> Clone for MessageTooShortSnafu<__T0, __T1, __T2>
Source§fn clone(&self) -> MessageTooShortSnafu<__T0, __T1, __T2>
fn clone(&self) -> MessageTooShortSnafu<__T0, __T1, __T2>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<__T0, __T1, __T2> IntoError<ProtocolError> for MessageTooShortSnafu<__T0, __T1, __T2>where
ProtocolError: Error + ErrorCompat,
__T0: Into<&'static str>,
__T1: Into<usize>,
__T2: Into<usize>,
impl<__T0, __T1, __T2> IntoError<ProtocolError> for MessageTooShortSnafu<__T0, __T1, __T2>where
ProtocolError: Error + ErrorCompat,
__T0: Into<&'static str>,
__T1: Into<usize>,
__T2: Into<usize>,
Source§fn into_error(self, error: Self::Source) -> ProtocolError
fn into_error(self, error: Self::Source) -> ProtocolError
Combine the information to produce the error
impl<__T0: Copy, __T1: Copy, __T2: Copy> Copy for MessageTooShortSnafu<__T0, __T1, __T2>
Auto Trait Implementations§
impl<__T0, __T1, __T2> Freeze for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> RefUnwindSafe for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> Send for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> Sync for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> Unpin for MessageTooShortSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> UnwindSafe for MessageTooShortSnafu<__T0, __T1, __T2>
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