Struct parquet_format_safe::thrift::TransportError
source · [−]pub struct TransportError {
pub kind: TransportErrorKind,
pub message: String,
}
Expand description
Information about I/O errors.
Fields
kind: TransportErrorKind
I/O error variant.
If a specific TransportErrorKind
does not apply use
TransportErrorKind::Unknown
.
message: String
Human-readable error message.
Implementations
sourceimpl TransportError
impl TransportError
sourcepub fn new<S: Into<String>>(
kind: TransportErrorKind,
message: S
) -> TransportError
pub fn new<S: Into<String>>(
kind: TransportErrorKind,
message: S
) -> TransportError
Create a new TransportError
.
Trait Implementations
sourceimpl Debug for TransportError
impl Debug for TransportError
sourceimpl Display for TransportError
impl Display for TransportError
sourceimpl From<TransportError> for Error
impl From<TransportError> for Error
sourcefn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TransportError> for TransportError
impl PartialEq<TransportError> for TransportError
sourcefn eq(&self, other: &TransportError) -> bool
fn eq(&self, other: &TransportError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransportError) -> bool
fn ne(&self, other: &TransportError) -> bool
This method tests for !=
.
impl Eq for TransportError
impl StructuralEq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnwindSafe for TransportError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more