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§
source§impl 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§
source§impl Debug for TransportError
impl Debug for TransportError
source§impl Display for TransportError
impl Display for TransportError
source§impl From<TransportError> for Error
impl From<TransportError> for Error
source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
source§impl PartialEq for TransportError
impl PartialEq for TransportError
source§fn 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 ==
.impl Eq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Freeze for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnwindSafe for TransportError
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