pub struct NumericOverflowSnafu<__T0, __T1> {
pub field: __T0,
pub num: __T1,
}Expand description
SNAFU context selector for the ProtoError::NumericOverflow variant
Fields§
§field: __T0§num: __T1Implementations§
Source§impl<__T0, __T1> NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> NumericOverflowSnafu<__T0, __T1>
Sourcepub fn build(self) -> ProtoError
pub fn build(self) -> ProtoError
Consume the selector and return the associated error
Trait Implementations§
Source§impl<__T0: Clone, __T1: Clone> Clone for NumericOverflowSnafu<__T0, __T1>
impl<__T0: Clone, __T1: Clone> Clone for NumericOverflowSnafu<__T0, __T1>
Source§fn clone(&self) -> NumericOverflowSnafu<__T0, __T1>
fn clone(&self) -> NumericOverflowSnafu<__T0, __T1>
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 moreimpl<__T0: Copy, __T1: Copy> Copy for NumericOverflowSnafu<__T0, __T1>
Source§impl<__T0, __T1> IntoError<ProtoError> for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ProtoError> for NumericOverflowSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Auto Trait Implementations§
impl<__T0, __T1> Freeze for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> RefUnwindSafe for NumericOverflowSnafu<__T0, __T1>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
impl<__T0, __T1> Send for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> Sync for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> Unpin for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> UnsafeUnpin for NumericOverflowSnafu<__T0, __T1>where
__T0: UnsafeUnpin,
__T1: UnsafeUnpin,
impl<__T0, __T1> UnwindSafe for NumericOverflowSnafu<__T0, __T1>where
__T0: UnwindSafe,
__T1: UnwindSafe,
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