pub struct UnexpectedDataSnafu;
Expand description
SNAFU context selector for the ProtocolError::UnexpectedData
variant
Implementations§
Source§impl UnexpectedDataSnafu
impl UnexpectedDataSnafu
Sourcepub fn build(self) -> ProtocolError
pub fn build(self) -> ProtocolError
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, ProtocolError>
pub fn fail<__T>(self) -> Result<__T, ProtocolError>
Consume the selector and return a Result
with the associated error
Trait Implementations§
Source§impl Clone for UnexpectedDataSnafu
impl Clone for UnexpectedDataSnafu
Source§fn clone(&self) -> UnexpectedDataSnafu
fn clone(&self) -> UnexpectedDataSnafu
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 Debug for UnexpectedDataSnafu
impl Debug for UnexpectedDataSnafu
Source§impl IntoError<ProtocolError> for UnexpectedDataSnafu
impl IntoError<ProtocolError> for UnexpectedDataSnafu
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 Copy for UnexpectedDataSnafu
Auto Trait Implementations§
impl Freeze for UnexpectedDataSnafu
impl RefUnwindSafe for UnexpectedDataSnafu
impl Send for UnexpectedDataSnafu
impl Sync for UnexpectedDataSnafu
impl Unpin for UnexpectedDataSnafu
impl UnwindSafe for UnexpectedDataSnafu
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