pub struct ErrorHandler;Implementations§
Source§impl ErrorHandler
impl ErrorHandler
pub fn status_matches_expected(status: &GrpcError, expected: &Value) -> bool
pub fn status_matches_expected_with_options( status: &GrpcError, expected: &Value, partial: bool, ) -> bool
pub fn status_details_json(status: &GrpcError) -> Value
pub fn status_to_json(status: &GrpcError) -> Value
pub fn status_mismatch_reason( status: &GrpcError, expected: &Value, ) -> Option<String>
pub fn status_mismatch_reason_with_options( status: &GrpcError, expected: &Value, partial: bool, ) -> Option<String>
pub fn grpc_code_name_from_numeric(code: i64) -> Option<&'static str>
pub fn error_matches_expected(error_text: &str, expected: &Value) -> bool
Auto Trait Implementations§
impl Freeze for ErrorHandler
impl RefUnwindSafe for ErrorHandler
impl Send for ErrorHandler
impl Sync for ErrorHandler
impl Unpin for ErrorHandler
impl UnsafeUnpin for ErrorHandler
impl UnwindSafe for ErrorHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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