pub enum FlightError {
Arrow(ArrowError),
NotYetImplemented(String),
Tonic(Status),
ProtocolError(String),
DecodeError(String),
ExternalError(Box<dyn Error + Send + Sync>),
}
Expand description
Errors for the Apache Arrow Flight crate
Variants§
Arrow(ArrowError)
Underlying arrow error
NotYetImplemented(String)
Returned when functionality is not yet available.
Tonic(Status)
Error from the underlying tonic library
ProtocolError(String)
Some unexpected message was received
DecodeError(String)
An error occurred during decoding
ExternalError(Box<dyn Error + Send + Sync>)
External error that can provide source of error by calling Error::source
.
Implementations§
Trait Implementations§
Source§impl Debug for FlightError
impl Debug for FlightError
Source§impl Display for FlightError
impl Display for FlightError
Source§impl Error for FlightError
impl Error for FlightError
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 FlightError
impl From<ArrowError> for FlightError
Source§impl From<FlightError> for Status
impl From<FlightError> for Status
Source§fn from(value: FlightError) -> Self
fn from(value: FlightError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for FlightError
impl !RefUnwindSafe for FlightError
impl Send for FlightError
impl Sync for FlightError
impl Unpin for FlightError
impl !UnwindSafe for FlightError
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> 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>
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