Struct parquet_format_safe::thrift::ProtocolError
source · pub struct ProtocolError {
pub kind: ProtocolErrorKind,
pub message: String,
}
Expand description
Information about errors that occur in the runtime library.
Fields§
§kind: ProtocolErrorKind
Protocol error variant.
If a specific ProtocolErrorKind
does not apply use
ProtocolErrorKind::Unknown
.
message: String
Human-readable error message.
Implementations§
source§impl ProtocolError
impl ProtocolError
sourcepub fn new<S: Into<String>>(
kind: ProtocolErrorKind,
message: S
) -> ProtocolError
pub fn new<S: Into<String>>( kind: ProtocolErrorKind, message: S ) -> ProtocolError
Create a new ProtocolError
.
Trait Implementations§
source§impl Debug for ProtocolError
impl Debug for ProtocolError
source§impl Display for ProtocolError
impl Display for ProtocolError
source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
source§fn eq(&self, other: &ProtocolError) -> bool
fn eq(&self, other: &ProtocolError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
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