Struct rdkafka::error::RDKafkaError[][src]

pub struct RDKafkaError(_);

Native rdkafka error.

Implementations

impl RDKafkaError[src]

pub fn code(&self) -> RDKafkaErrorCode[src]

Returns the error code or RDKafkaErrorCode::NoError if the error is null.

pub fn name(&self) -> String[src]

Returns the error code name, e.g., “ERR_UNKNOWN_MEMBER_ID” or an empty string if the error is null.

pub fn string(&self) -> String[src]

Returns a human readable error string or an empty string if the error is null.

pub fn is_fatal(&self) -> bool[src]

Reports whether the error is a fatal error.

A fatal error indicates that the client instance is no longer usable.

pub fn is_retriable(&self) -> bool[src]

Reports whether the operation that encountered the error can be retried.

pub fn txn_requires_abort(&self) -> bool[src]

Reports whether the error is an abortable transaction error.

Trait Implementations

impl Clone for RDKafkaError[src]

impl Debug for RDKafkaError[src]

impl Display for RDKafkaError[src]

impl Eq for RDKafkaError[src]

impl Error for RDKafkaError[src]

impl IsError for RDKafkaError[src]

impl PartialEq<RDKafkaError> for RDKafkaError[src]

impl Send for RDKafkaError[src]

impl Sync for RDKafkaError[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> ToString for T where
    T: Display + ?Sized
[src]

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.