Struct 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
sourceimpl 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
sourceimpl Debug for ProtocolError
impl Debug for ProtocolError
sourceimpl Display for ProtocolError
impl Display for ProtocolError
sourceimpl From<ProtocolError> for Error
impl From<ProtocolError> for Error
sourcefn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ProtocolError> for ProtocolError
impl PartialEq<ProtocolError> for ProtocolError
sourcefn eq(&self, other: &ProtocolError) -> bool
fn eq(&self, other: &ProtocolError) -> bool
impl Eq for ProtocolError
impl StructuralEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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