Struct ErrorCode

Source
pub struct ErrorCode { /* private fields */ }

Implementations§

Source§

impl ErrorCode

Source

pub fn code(&self) -> i16

Source

pub fn message(&self) -> &'static str

Source

pub fn retryable(&self) -> bool

Source§

impl ErrorCode

Source

pub const UNKNOWN_SERVER_ERROR: Self

Source

pub const NONE: Self

Source

pub const OFFSET_OUT_OF_RANGE: Self

Source

pub const CORRUPT_MESSAGE: Self

Source

pub const UNKNOWN_TOPIC_OR_PARTITION: Self

Source

pub const INVALID_FETCH_SIZE: Self

Source

pub const LEADER_NOT_AVAILABLE: Self

Source

pub const NOT_LEADER_OR_FOLLOWER: Self

Source

pub const REQUEST_TIMED_OUT: Self

Source

pub const BROKER_NOT_AVAILABLE: Self

Source

pub const REPLICA_NOT_AVAILABLE: Self

Source

pub const MESSAGE_TOO_LARGE: Self

Source

pub const STALE_CONTROLLER_EPOCH: Self

Source

pub const OFFSET_METADATA_TOO_LARGE: Self

Source

pub const NETWORK_EXCEPTION: Self

Source

pub const COORDINATOR_LOAD_IN_PROGRESS: Self

Source

pub const COORDINATOR_NOT_AVAILABLE: Self

Source

pub const NOT_COORDINATOR: Self

Source

pub const INVALID_TOPIC_EXCEPTION: Self

Source

pub const RECORD_LIST_TOO_LARGE: Self

Source

pub const NOT_ENOUGH_REPLICAS: Self

Source

pub const NOT_ENOUGH_REPLICAS_AFTER_APPEND: Self

Source

pub const INVALID_REQUIRED_ACKS: Self

Source

pub const ILLEGAL_GENERATION: Self

Source

pub const INCONSISTENT_GROUP_PROTOCOL: Self

Source

pub const INVALID_GROUP_ID: Self

Source

pub const UNKNOWN_MEMBER_ID: Self

Source

pub const INVALID_SESSION_TIMEOUT: Self

Source

pub const REBALANCE_IN_PROGRESS: Self

Source

pub const INVALID_COMMIT_OFFSET_SIZE: Self

Source

pub const TOPIC_AUTHORIZATION_FAILED: Self

Source

pub const GROUP_AUTHORIZATION_FAILED: Self

Source

pub const CLUSTER_AUTHORIZATION_FAILED: Self

Source

pub const INVALID_TIMESTAMP: Self

Source

pub const UNSUPPORTED_SASL_MECHANISM: Self

Source

pub const ILLEGAL_SASL_STATE: Self

Source

pub const UNSUPPORTED_VERSION: Self

Source

pub const TOPIC_ALREADY_EXISTS: Self

Source

pub const INVALID_PARTITIONS: Self

Source

pub const INVALID_REPLICATION_FACTOR: Self

Source

pub const INVALID_REPLICA_ASSIGNMENT: Self

Source

pub const INVALID_CONFIG: Self

Source

pub const NOT_CONTROLLER: Self

Source

pub const INVALID_REQUEST: Self

Source

pub const UNSUPPORTED_FOR_MESSAGE_FORMAT: Self

Source

pub const POLICY_VIOLATION: Self

Source

pub const OUT_OF_ORDER_SEQUENCE_NUMBER: Self

Source

pub const DUPLICATE_SEQUENCE_NUMBER: Self

Source

pub const INVALID_PRODUCER_EPOCH: Self

Source

pub const INVALID_TXN_STATE: Self

Source

pub const INVALID_PRODUCER_ID_MAPPING: Self

Source

pub const INVALID_TRANSACTION_TIMEOUT: Self

Source

pub const CONCURRENT_TRANSACTIONS: Self

Source

pub const TRANSACTION_COORDINATOR_FENCED: Self

Source

pub const TRANSACTIONAL_ID_AUTHORIZATION_FAILED: Self

Source

pub const SECURITY_DISABLED: Self

Source

pub const OPERATION_NOT_ATTEMPTED: Self

Source

pub const KAFKA_STORAGE_ERROR: Self

Source

pub const LOG_DIR_NOT_FOUND: Self

Source

pub const SASL_AUTHENTICATION_FAILED: Self

Source

pub const UNKNOWN_PRODUCER_ID: Self

Source

pub const REASSIGNMENT_IN_PROGRESS: Self

Source

pub const DELEGATION_TOKEN_AUTH_DISABLED: Self

Source

pub const DELEGATION_TOKEN_NOT_FOUND: Self

Source

pub const DELEGATION_TOKEN_OWNER_MISMATCH: Self

Source

pub const DELEGATION_TOKEN_REQUEST_NOT_ALLOWED: Self

Source

pub const DELEGATION_TOKEN_AUTHORIZATION_FAILED: Self

Source

pub const DELEGATION_TOKEN_EXPIRED: Self

Source

pub const INVALID_PRINCIPAL_TYPE: Self

Source

pub const NON_EMPTY_GROUP: Self

Source

pub const GROUP_ID_NOT_FOUND: Self

Source

pub const FETCH_SESSION_ID_NOT_FOUND: Self

Source

pub const INVALID_FETCH_SESSION_EPOCH: Self

Source

pub const LISTENER_NOT_FOUND: Self

Source

pub const TOPIC_DELETION_DISABLED: Self

Source

pub const FENCED_LEADER_EPOCH: Self

Source

pub const UNKNOWN_LEADER_EPOCH: Self

Source

pub const UNSUPPORTED_COMPRESSION_TYPE: Self

Source

pub const STALE_BROKER_EPOCH: Self

Source

pub const OFFSET_NOT_AVAILABLE: Self

Source

pub const MEMBER_ID_REQUIRED: Self

Source

pub const PREFERRED_LEADER_NOT_AVAILABLE: Self

Source

pub const GROUP_MAX_SIZE_REACHED: Self

Source

pub const FENCED_INSTANCE_ID: Self

Source

pub const ELIGIBLE_LEADERS_NOT_AVAILABLE: Self

Source

pub const ELECTION_NOT_NEEDED: Self

Source

pub const NO_REASSIGNMENT_IN_PROGRESS: Self

Source

pub const GROUP_SUBSCRIBED_TO_TOPIC: Self

Source

pub const INVALID_RECORD: Self

Source

pub const UNSTABLE_OFFSET_COMMIT: Self

Source

pub const THROTTLING_QUOTA_EXCEEDED: Self

Source

pub const PRODUCER_FENCED: Self

Source

pub const RESOURCE_NOT_FOUND: Self

Source

pub const DUPLICATE_RESOURCE: Self

Source

pub const UNACCEPTABLE_CREDENTIAL: Self

Source

pub const INCONSISTENT_VOTER_SET: Self

Source

pub const INVALID_UPDATE_VERSION: Self

Source

pub const FEATURE_UPDATE_FAILED: Self

Source

pub const PRINCIPAL_DESERIALIZATION_FAILURE: Self

Source

pub const SNAPSHOT_NOT_FOUND: Self

Source

pub const POSITION_OUT_OF_RANGE: Self

Source

pub const UNKNOWN_TOPIC_ID: Self

Source

pub const DUPLICATE_BROKER_REGISTRATION: Self

Source

pub const BROKER_ID_NOT_REGISTERED: Self

Source

pub const INCONSISTENT_TOPIC_ID: Self

Source

pub const INCONSISTENT_CLUSTER_ID: Self

Source

pub const TRANSACTIONAL_ID_NOT_FOUND: Self

Source

pub const FETCH_SESSION_TOPIC_ID_ERROR: Self

Source

pub const INELIGIBLE_REPLICA: Self

Source

pub const NEW_LEADER_ELECTED: Self

Source

pub const OFFSET_MOVED_TO_TIERED_STORAGE: Self

Source

pub const FENCED_MEMBER_EPOCH: Self

Source

pub const UNRELEASED_INSTANCE_ID: Self

Source

pub const UNSUPPORTED_ASSIGNOR: Self

Source

pub const STALE_MEMBER_EPOCH: Self

Source

pub const MISMATCHED_ENDPOINT_TYPE: Self

Source

pub const UNSUPPORTED_ENDPOINT_TYPE: Self

Source

pub const UNKNOWN_CONTROLLER_ID: Self

Source

pub const UNKNOWN_SUBSCRIPTION_ID: Self

Source

pub const TELEMETRY_TOO_LARGE: Self

Source

pub const INVALID_REGISTRATION: Self

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorCode

Source§

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

Formats the value using the given formatter. Read more

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.