[][src]Struct fbthrift::application_exception::ApplicationException

pub struct ApplicationException {
    pub message: String,
    pub type_: ApplicationExceptionErrorCode,
}

ApplicationException is not actually an error type in the Rust sense, but a Thrift-specific serializable

Fields

message: Stringtype_: ApplicationExceptionErrorCode

Implementations

impl ApplicationException[src]

pub fn new(type_: ApplicationExceptionErrorCode, message: String) -> Self[src]

pub fn unimplemented_method(handler: &str, method: &str) -> Self[src]

pub fn unknown_method() -> Self[src]

Indicator that this service doesn't have the method, but another might

pub fn missing_arg(method: &str, arg: &str) -> Self[src]

pub fn missing_field(method: &str, field: &str) -> Self[src]

pub fn invalid_protocol(badproto: ProtocolID) -> Self[src]

Trait Implementations

impl Clone for ApplicationException[src]

impl Debug for ApplicationException[src]

impl Default for ApplicationException[src]

impl<P> Deserialize<P> for ApplicationException where
    P: ProtocolReader
[src]

pub fn read(iprot: &mut P) -> Result<Self>[src]

Decodes a ApplicationException message from a Protocol stream

impl Eq for ApplicationException[src]

impl From<ApplicationException> for NonthrowingFunctionError[src]

impl Hash for ApplicationException[src]

impl Ord for ApplicationException[src]

impl PartialEq<ApplicationException> for ApplicationException[src]

impl PartialOrd<ApplicationException> for ApplicationException[src]

impl<P> Serialize<P> for ApplicationException where
    P: ProtocolWriter
[src]

pub fn write(&self, oprot: &mut P)[src]

Writes an application exception to the Protocol stream

impl StructuralEq for ApplicationException[src]

impl StructuralPartialEq for ApplicationException[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.