pub enum GrpcurlError {
NotFound(String),
ReflectionNotSupported,
InvalidArgument(String),
Io(Error),
Proto(String),
GrpcStatus(Status),
Other(Box<dyn Error + Send + Sync>),
}Expand description
All error types produced by the grpcurl-rs library.
Maps to the Go codebase’s error types:
notFoundError(invoke.go:382)ErrReflectionNotSupported(desc_source.go)- Various ad-hoc errors wrapped in
fmt.Errorf
Variants§
NotFound(String)
The requested symbol (service, method, message, etc.) was not found.
Equivalent to Go’s notFoundError and grpcreflect.IsElementNotFoundError.
ReflectionNotSupported
The server does not support the gRPC reflection API.
Equivalent to Go’s ErrReflectionNotSupported.
InvalidArgument(String)
An invalid argument was provided (e.g., malformed method name).
Io(Error)
An I/O error (file read, network, etc.).
Proto(String)
A protobuf encoding/decoding error.
GrpcStatus(Status)
A gRPC status error from the server.
Other(Box<dyn Error + Send + Sync>)
Any other error.
Trait Implementations§
Source§impl Debug for GrpcurlError
impl Debug for GrpcurlError
Source§impl Display for GrpcurlError
impl Display for GrpcurlError
Source§impl Error for GrpcurlError
impl Error for GrpcurlError
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()
Source§impl From<Error> for GrpcurlError
impl From<Error> for GrpcurlError
Source§impl From<GrpcurlError> for ParseError
impl From<GrpcurlError> for ParseError
Source§fn from(err: GrpcurlError) -> Self
fn from(err: GrpcurlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrpcurlError
impl !RefUnwindSafe for GrpcurlError
impl Send for GrpcurlError
impl Sync for GrpcurlError
impl Unpin for GrpcurlError
impl UnsafeUnpin for GrpcurlError
impl !UnwindSafe for GrpcurlError
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