pub enum VineError {
ClientNotConnected(String),
RPCError(String),
SerializationError(Error),
TonicTransportError(Error),
RequestTimeout {
SideCarIdentifier: String,
MethodName: String,
TimeoutMilliseconds: u64,
},
InternalLockError(String),
InvalidUri(InvalidUri),
AddressParseError(AddrParseError),
}Expand description
A comprehensive error enum for the Vine IPC layer.
Variants§
ClientNotConnected(String)
A gRPC client channel for the specified sidecar could not be found or is not ready.
RPCError(String)
An RPC call to a sidecar failed with a specific gRPC status.
SerializationError(Error)
An error occurred while serializing or deserializing a JSON payload.
TonicTransportError(Error)
A low-level error occurred in the tonic gRPC transport layer.
RequestTimeout
A request did not receive a response within the specified timeout.
InternalLockError(String)
A shared state mutex was “poisoned,” indicating a panic.
InvalidUri(InvalidUri)
An error occurred from an invalid URI.
AddressParseError(AddrParseError)
An error occurred while parsing a socket address.
Trait Implementations§
Source§impl Error for VineError
impl Error for VineError
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<AddrParseError> for VineError
impl From<AddrParseError> for VineError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<MutexGuard<'_, T>>> for VineError
impl<T> From<PoisonError<MutexGuard<'_, T>>> for VineError
Source§fn from(Error: PoisonError<MutexGuard<'_, T>>) -> Self
fn from(Error: PoisonError<MutexGuard<'_, T>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VineError
impl !RefUnwindSafe for VineError
impl Send for VineError
impl Sync for VineError
impl Unpin for VineError
impl !UnwindSafe for VineError
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].