pub struct ControlBoundarySnafu<__T0, __T1> {
pub kind: __T0,
pub outcome: __T1,
}Expand description
SNAFU context selector for the AnytypeGrpcError::ControlBoundary variant
Fields§
§kind: __T0§outcome: __T1Implementations§
Source§impl<__T0, __T1> ControlBoundarySnafu<__T0, __T1>
impl<__T0, __T1> ControlBoundarySnafu<__T0, __T1>
Sourcepub fn build(self) -> AnytypeGrpcError
pub fn build(self) -> AnytypeGrpcError
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, AnytypeGrpcError>
pub fn fail<__T>(self) -> Result<__T, AnytypeGrpcError>
Consume the selector and return a Result with the associated error
Trait Implementations§
Source§impl<__T0: Clone, __T1: Clone> Clone for ControlBoundarySnafu<__T0, __T1>
impl<__T0: Clone, __T1: Clone> Clone for ControlBoundarySnafu<__T0, __T1>
Source§fn clone(&self) -> ControlBoundarySnafu<__T0, __T1>
fn clone(&self) -> ControlBoundarySnafu<__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 ControlBoundarySnafu<__T0, __T1>
Source§impl<__T0, __T1> IntoError<AnytypeGrpcError> for ControlBoundarySnafu<__T0, __T1>where
AnytypeGrpcError: Error + ErrorCompat,
__T0: Into<GrpcControlBoundaryKind>,
__T1: Into<GrpcTimeoutOutcome>,
impl<__T0, __T1> IntoError<AnytypeGrpcError> for ControlBoundarySnafu<__T0, __T1>where
AnytypeGrpcError: Error + ErrorCompat,
__T0: Into<GrpcControlBoundaryKind>,
__T1: Into<GrpcTimeoutOutcome>,
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Auto Trait Implementations§
impl<__T0, __T1> Freeze for ControlBoundarySnafu<__T0, __T1>
impl<__T0, __T1> RefUnwindSafe for ControlBoundarySnafu<__T0, __T1>where
__T0: RefUnwindSafe,
__T1: RefUnwindSafe,
impl<__T0, __T1> Send for ControlBoundarySnafu<__T0, __T1>
impl<__T0, __T1> Sync for ControlBoundarySnafu<__T0, __T1>
impl<__T0, __T1> Unpin for ControlBoundarySnafu<__T0, __T1>
impl<__T0, __T1> UnsafeUnpin for ControlBoundarySnafu<__T0, __T1>where
__T0: UnsafeUnpin,
__T1: UnsafeUnpin,
impl<__T0, __T1> UnwindSafe for ControlBoundarySnafu<__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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request