Skip to main content

VineError

Type Alias VineError 

Source
pub type VineError = VineError;
Expand description

Canonical Vine error type, re-exported from the Vine crate.

New code should construct this directly. The AirCompat helpers below remain available for callers that prefer Air’s prior variant names. Canonical Vine error enum, surfaced through Air’s Vine::Error path.

Aliased Type§

pub enum VineError {
Show 14 variants ClientNotConnected(String), ConnectionFailed { SideCarIdentifier: String, Address: String, Reason: String, }, ConnectionLost(String), RPCError(String), RequestTimeout { SideCarIdentifier: String, MethodName: String, TimeoutMilliseconds: u64, }, RequestCanceled { SideCarIdentifier: String, MethodName: String, }, SerializationError(Error), MessageTooLarge { ActualSize: usize, MaxSize: usize, }, InvalidMessageFormat(String), TonicTransportError(Error), InternalLockError(String), InvalidState(String), InvalidUri(InvalidUri), AddressParseError(AddrParseError),
}

Variants§

§

ClientNotConnected(String)

A gRPC client channel for the specified sidecar could not be found or is not ready in the connection pool.

§

ConnectionFailed

Failed to establish a connection to the specified sidecar.

Fields

§SideCarIdentifier: String
§Address: String
§Reason: String
§

ConnectionLost(String)

An established connection to the sidecar was lost.

§

RPCError(String)

An RPC call to a sidecar failed with a specific gRPC status.

§

RequestTimeout

A request did not receive a response within the configured timeout.

Fields

§SideCarIdentifier: String
§MethodName: String
§TimeoutMilliseconds: u64
§

RequestCanceled

A request was explicitly cancelled before completion.

Fields

§SideCarIdentifier: String
§MethodName: String
§

SerializationError(Error)

An error occurred while serializing or deserializing a JSON payload.

§

MessageTooLarge

Message exceeded the maximum allowed size.

Fields

§ActualSize: usize
§MaxSize: usize
§

InvalidMessageFormat(String)

Message format validation failed.

§

TonicTransportError(Error)

A low-level error occurred in the tonic gRPC transport layer.

§

InternalLockError(String)

A shared state mutex was “poisoned,” indicating a panic in another thread while holding the lock.

§

InvalidState(String)

Invalid internal state detected - the system reached an unexpected state that should never happen during normal operation.

§

InvalidUri(InvalidUri)

An error occurred from an invalid URI.

§

AddressParseError(AddrParseError)

An error occurred while parsing a socket address.