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
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