[][src]Struct tonic::Status

pub struct Status { /* fields omitted */ }

A gRPC status describing the result of an RPC call.

Methods

impl Status[src]

pub fn new(code: Code, message: impl Into<String>) -> Status[src]

Create a new Status with the associated code and message.

pub fn unimplemented(message: impl Into<String>) -> Status[src]

Create a new Unimplemented status with the associated message.

pub fn code(&self) -> Code[src]

Get the gRPC Code of this Status.

pub fn message(&self) -> &str[src]

Get the text error message of this Status.

Important traits for &'_ mut [u8]
pub fn details(&self) -> &[u8][src]

Get the opaque error details of this Status.

Trait Implementations

impl From<Error> for Status[src]

impl Clone for Status[src]

impl Display for Status[src]

impl Debug for Status[src]

impl Error for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

impl Unpin for Status

impl UnwindSafe for Status

impl RefUnwindSafe for Status

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]