pub enum AdvanceError {
Server(Status),
Other(Error),
}Variants§
Implementations§
Source§impl AdvanceError
impl AdvanceError
pub fn is_server_rejection(&self) -> bool
Trait Implementations§
Source§impl Debug for AdvanceError
impl Debug for AdvanceError
Source§impl Display for AdvanceError
impl Display for AdvanceError
Source§impl Error for AdvanceError
impl Error for AdvanceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for AdvanceError
impl !UnwindSafe for AdvanceError
impl Freeze for AdvanceError
impl Send for AdvanceError
impl Sync for AdvanceError
impl Unpin for AdvanceError
impl UnsafeUnpin for AdvanceError
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> 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