Skip to main content

ErrorCode

Struct ErrorCode 

Source
pub struct ErrorCode(pub i16);
Expand description

An error code carried in a Kafka response.

Tuple Fields§

§0: i16

Implementations§

Source§

impl ErrorCode

Source

pub const UNKNOWN_SERVER_ERROR: ErrorCode

Source

pub const NONE: ErrorCode

Source

pub const OFFSET_OUT_OF_RANGE: ErrorCode

Source

pub const CORRUPT_MESSAGE: ErrorCode

Source

pub const UNKNOWN_TOPIC_OR_PARTITION: ErrorCode

Source

pub const INVALID_FETCH_SIZE: ErrorCode

Source

pub const LEADER_NOT_AVAILABLE: ErrorCode

Source

pub const NOT_LEADER_OR_FOLLOWER: ErrorCode

Source

pub const REQUEST_TIMED_OUT: ErrorCode

Source

pub const BROKER_NOT_AVAILABLE: ErrorCode

Source

pub const REPLICA_NOT_AVAILABLE: ErrorCode

Source

pub const MESSAGE_TOO_LARGE: ErrorCode

Source

pub const NETWORK_EXCEPTION: ErrorCode

Source

pub const COORDINATOR_LOAD_IN_PROGRESS: ErrorCode

Source

pub const COORDINATOR_NOT_AVAILABLE: ErrorCode

Source

pub const NOT_COORDINATOR: ErrorCode

Source

pub const INVALID_TOPIC_EXCEPTION: ErrorCode

Source

pub const RECORD_LIST_TOO_LARGE: ErrorCode

Source

pub const NOT_ENOUGH_REPLICAS: ErrorCode

Source

pub const NOT_ENOUGH_REPLICAS_AFTER_APPEND: ErrorCode

Source

pub const INVALID_REQUIRED_ACKS: ErrorCode

Source

pub const ILLEGAL_GENERATION: ErrorCode

Source

pub const INCONSISTENT_GROUP_PROTOCOL: ErrorCode

Source

pub const INVALID_GROUP_ID: ErrorCode

Source

pub const UNKNOWN_MEMBER_ID: ErrorCode

Source

pub const INVALID_SESSION_TIMEOUT: ErrorCode

Source

pub const REBALANCE_IN_PROGRESS: ErrorCode

Source

pub const TOPIC_AUTHORIZATION_FAILED: ErrorCode

Source

pub const GROUP_AUTHORIZATION_FAILED: ErrorCode

Source

pub const CLUSTER_AUTHORIZATION_FAILED: ErrorCode

Source

pub const UNSUPPORTED_SASL_MECHANISM: ErrorCode

Source

pub const ILLEGAL_SASL_STATE: ErrorCode

Source

pub const UNSUPPORTED_VERSION: ErrorCode

Source

pub const TOPIC_ALREADY_EXISTS: ErrorCode

Source

pub const INVALID_PARTITIONS: ErrorCode

Source

pub const INVALID_REPLICATION_FACTOR: ErrorCode

Source

pub const NOT_CONTROLLER: ErrorCode

Source

pub const INVALID_REQUEST: ErrorCode

Source

pub const UNSUPPORTED_FOR_MESSAGE_FORMAT: ErrorCode

Source

pub const POLICY_VIOLATION: ErrorCode

Source

pub const OUT_OF_ORDER_SEQUENCE_NUMBER: ErrorCode

Source

pub const DUPLICATE_SEQUENCE_NUMBER: ErrorCode

Source

pub const INVALID_PRODUCER_EPOCH: ErrorCode

Source

pub const INVALID_TXN_STATE: ErrorCode

Source

pub const INVALID_PRODUCER_ID_MAPPING: ErrorCode

Source

pub const INVALID_TRANSACTION_TIMEOUT: ErrorCode

Source

pub const CONCURRENT_TRANSACTIONS: ErrorCode

Source

pub const TRANSACTION_COORDINATOR_FENCED: ErrorCode

Source

pub const TRANSACTIONAL_ID_AUTHORIZATION_FAILED: ErrorCode

Source

pub const OPERATION_NOT_ATTEMPTED: ErrorCode

Source

pub const KAFKA_STORAGE_ERROR: ErrorCode

Source

pub const SASL_AUTHENTICATION_FAILED: ErrorCode

Source

pub const UNKNOWN_PRODUCER_ID: ErrorCode

Source

pub const TOPIC_DELETION_DISABLED: ErrorCode

Source

pub const UNSUPPORTED_COMPRESSION_TYPE: ErrorCode

Source

pub const MEMBER_ID_REQUIRED: ErrorCode

Source

pub const GROUP_MAX_SIZE_REACHED: ErrorCode

Source

pub const PRODUCER_FENCED: ErrorCode

Source

pub const UNKNOWN_TOPIC_ID: ErrorCode

Source

pub const TRANSACTIONAL_ID_NOT_FOUND: ErrorCode

Source

pub const FENCED_MEMBER_EPOCH: ErrorCode

Source

pub const UNRELEASED_INSTANCE_ID: ErrorCode

Source

pub const UNSUPPORTED_ASSIGNOR: ErrorCode

Source

pub const STALE_MEMBER_EPOCH: ErrorCode

Source

pub const TRANSACTION_ABORTABLE: ErrorCode

Source

pub const fn name(self) -> Option<&'static str>

The upstream name of this code, if known.

Source§

impl ErrorCode

Source

pub const fn is_ok(self) -> bool

True when this code signals success.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ErrorCode

Source§

impl From<i16> for ErrorCode

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.