[−][src]Struct thrift::ProtocolError
Information about errors that occur in the runtime library.
Fields
kind: ProtocolErrorKindProtocol error variant.
If a specific ProtocolErrorKind does not apply use
ProtocolErrorKind::Unknown.
message: StringHuman-readable error message.
Methods
impl ProtocolError[src]
pub fn new<S: Into<String>>(
kind: ProtocolErrorKind,
message: S
) -> ProtocolError[src]
kind: ProtocolErrorKind,
message: S
) -> ProtocolError
Create a new ProtocolError.
Trait Implementations
impl From<ProtocolError> for Error[src]
fn from(e: ProtocolError) -> Self[src]
impl Eq for ProtocolError[src]
impl PartialEq<ProtocolError> for ProtocolError[src]
fn eq(&self, other: &ProtocolError) -> bool[src]
fn ne(&self, other: &ProtocolError) -> bool[src]
impl Display for ProtocolError[src]
impl Debug for ProtocolError[src]
impl StructuralPartialEq for ProtocolError[src]
impl StructuralEq for ProtocolError[src]
Auto Trait Implementations
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
impl RefUnwindSafe for ProtocolError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,