pub enum Error {
Http(Error),
Url(ParseError),
Json(Error),
Arrow(ArrowError),
Flight(Status),
Transport(Error),
Server {
code: u16,
message: String,
},
Timeout(Duration),
PartialWrite(PartialWriteError),
Config(String),
EnvVar(String),
}Expand description
Top-level error type for the InfluxDB 3 client.
Variants§
Http(Error)
HTTP transport error (connection refused, timeout, TLS, etc.)
Url(ParseError)
Invalid URL (bad host format, etc.)
Json(Error)
JSON serialization / deserialization failure
Arrow(ArrowError)
Arrow IPC or in-memory format error
Flight(Status)
gRPC status returned by Arrow Flight
Transport(Error)
gRPC transport error (could not connect, TLS failure)
Server
Server returned an error response (non-2xx HTTP)
Timeout(Duration)
An operation exceeded its configured timeout
PartialWrite(PartialWriteError)
Server accepted some lines and rejected others
Config(String)
Bad client configuration (missing required field, etc.)
EnvVar(String)
Required environment variable was not set
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ArrowError> for Error
impl From<ArrowError> for Error
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PartialWriteError> for Error
impl From<PartialWriteError> for Error
Source§fn from(source: PartialWriteError) -> Self
fn from(source: PartialWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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