Struct rdkafka::error::RDKafkaError [−][src]
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]
fn clone(&self) -> RDKafkaError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RDKafkaError
[src]
impl Display for RDKafkaError
[src]
impl Eq for RDKafkaError
[src]
impl Error for RDKafkaError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl IsError for RDKafkaError
[src]
impl PartialEq<RDKafkaError> for RDKafkaError
[src]
fn eq(&self, other: &RDKafkaError) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,