Struct kafka_api::error::Error

source ·
pub struct Error { /* private fields */ }

Implementations§

source§

impl Error

source

pub const UNKNOWN_SERVER_ERROR: Error = _

source

pub const NONE: Error = _

source

pub const OFFSET_OUT_OF_RANGE: Error = _

source

pub const CORRUPT_MESSAGE: Error = _

source

pub const UNKNOWN_TOPIC_OR_PARTITION: Error = _

source

pub const INVALID_FETCH_SIZE: Error = _

source

pub const LEADER_NOT_AVAILABLE: Error = _

source

pub const NOT_LEADER_OR_FOLLOWER: Error = _

source

pub const REQUEST_TIMED_OUT: Error = _

source

pub const BROKER_NOT_AVAILABLE: Error = _

source

pub const REPLICA_NOT_AVAILABLE: Error = _

source

pub const MESSAGE_TOO_LARGE: Error = _

source

pub const STALE_CONTROLLER_EPOCH: Error = _

source

pub const OFFSET_METADATA_TOO_LARGE: Error = _

source

pub const NETWORK_EXCEPTION: Error = _

source

pub const COORDINATOR_LOAD_IN_PROGRESS: Error = _

source

pub const COORDINATOR_NOT_AVAILABLE: Error = _

source

pub const NOT_COORDINATOR: Error = _

source

pub const INVALID_TOPIC_EXCEPTION: Error = _

source

pub const RECORD_LIST_TOO_LARGE: Error = _

source

pub const NOT_ENOUGH_REPLICAS: Error = _

source

pub const NOT_ENOUGH_REPLICAS_AFTER_APPEND: Error = _

source

pub const INVALID_REQUIRED_ACKS: Error = _

source

pub const ILLEGAL_GENERATION: Error = _

source

pub const INCONSISTENT_GROUP_PROTOCOL: Error = _

source

pub const INVALID_GROUP_ID: Error = _

source

pub const UNKNOWN_MEMBER_ID: Error = _

source

pub const INVALID_SESSION_TIMEOUT: Error = _

source

pub const REBALANCE_IN_PROGRESS: Error = _

source

pub const INVALID_COMMIT_OFFSET_SIZE: Error = _

source

pub const TOPIC_AUTHORIZATION_FAILED: Error = _

source

pub const GROUP_AUTHORIZATION_FAILED: Error = _

source

pub const CLUSTER_AUTHORIZATION_FAILED: Error = _

source

pub const INVALID_TIMESTAMP: Error = _

source

pub const UNSUPPORTED_SASL_MECHANISM: Error = _

source

pub const ILLEGAL_SASL_STATE: Error = _

source

pub const UNSUPPORTED_VERSION: Error = _

source

pub const TOPIC_ALREADY_EXISTS: Error = _

source

pub const INVALID_PARTITIONS: Error = _

source

pub const INVALID_REPLICATION_FACTOR: Error = _

source

pub const INVALID_REPLICA_ASSIGNMENT: Error = _

source

pub const INVALID_CONFIG: Error = _

source

pub const NOT_CONTROLLER: Error = _

source

pub const INVALID_REQUEST: Error = _

source

pub const UNSUPPORTED_FOR_MESSAGE_FORMAT: Error = _

source

pub const POLICY_VIOLATION: Error = _

source

pub const OUT_OF_ORDER_SEQUENCE_NUMBER: Error = _

source

pub const DUPLICATE_SEQUENCE_NUMBER: Error = _

source

pub const INVALID_PRODUCER_EPOCH: Error = _

source

pub const INVALID_TXN_STATE: Error = _

source

pub const INVALID_PRODUCER_ID_MAPPING: Error = _

source

pub const INVALID_TRANSACTION_TIMEOUT: Error = _

source

pub const CONCURRENT_TRANSACTIONS: Error = _

source

pub const TRANSACTION_COORDINATOR_FENCED: Error = _

source

pub const TRANSACTIONAL_ID_AUTHORIZATION_FAILED: Error = _

source

pub const SECURITY_DISABLED: Error = _

source

pub const OPERATION_NOT_ATTEMPTED: Error = _

source

pub const KAFKA_STORAGE_ERROR: Error = _

source

pub const LOG_DIR_NOT_FOUND: Error = _

source

pub const SASL_AUTHENTICATION_FAILED: Error = _

source

pub const UNKNOWN_PRODUCER_ID: Error = _

source

pub const REASSIGNMENT_IN_PROGRESS: Error = _

source

pub const DELEGATION_TOKEN_AUTH_DISABLED: Error = _

source

pub const DELEGATION_TOKEN_NOT_FOUND: Error = _

source

pub const DELEGATION_TOKEN_OWNER_MISMATCH: Error = _

source

pub const DELEGATION_TOKEN_REQUEST_NOT_ALLOWED: Error = _

source

pub const DELEGATION_TOKEN_AUTHORIZATION_FAILED: Error = _

source

pub const DELEGATION_TOKEN_EXPIRED: Error = _

source

pub const INVALID_PRINCIPAL_TYPE: Error = _

source

pub const NON_EMPTY_GROUP: Error = _

source

pub const GROUP_ID_NOT_FOUND: Error = _

source

pub const FETCH_SESSION_ID_NOT_FOUND: Error = _

source

pub const INVALID_FETCH_SESSION_EPOCH: Error = _

source

pub const LISTENER_NOT_FOUND: Error = _

source

pub const TOPIC_DELETION_DISABLED: Error = _

source

pub const FENCED_LEADER_EPOCH: Error = _

source

pub const UNKNOWN_LEADER_EPOCH: Error = _

source

pub const UNSUPPORTED_COMPRESSION_TYPE: Error = _

source

pub const STALE_BROKER_EPOCH: Error = _

source

pub const OFFSET_NOT_AVAILABLE: Error = _

source

pub const MEMBER_ID_REQUIRED: Error = _

source

pub const PREFERRED_LEADER_NOT_AVAILABLE: Error = _

source

pub const GROUP_MAX_SIZE_REACHED: Error = _

source

pub const FENCED_INSTANCE_ID: Error = _

source

pub const ELIGIBLE_LEADERS_NOT_AVAILABLE: Error = _

source

pub const ELECTION_NOT_NEEDED: Error = _

source

pub const NO_REASSIGNMENT_IN_PROGRESS: Error = _

source

pub const GROUP_SUBSCRIBED_TO_TOPIC: Error = _

source

pub const INVALID_RECORD: Error = _

source

pub const UNSTABLE_OFFSET_COMMIT: Error = _

source

pub const THROTTLING_QUOTA_EXCEEDED: Error = _

source

pub const PRODUCER_FENCED: Error = _

source

pub const RESOURCE_NOT_FOUND: Error = _

source

pub const DUPLICATE_RESOURCE: Error = _

source

pub const UNACCEPTABLE_CREDENTIAL: Error = _

source

pub const INCONSISTENT_VOTER_SET: Error = _

source

pub const INVALID_UPDATE_VERSION: Error = _

source

pub const FEATURE_UPDATE_FAILED: Error = _

source

pub const PRINCIPAL_DESERIALIZATION_FAILURE: Error = _

source

pub const SNAPSHOT_NOT_FOUND: Error = _

source

pub const POSITION_OUT_OF_RANGE: Error = _

source

pub const UNKNOWN_TOPIC_ID: Error = _

source

pub const DUPLICATE_BROKER_REGISTRATION: Error = _

source

pub const BROKER_ID_NOT_REGISTERED: Error = _

source

pub const INCONSISTENT_TOPIC_ID: Error = _

source

pub const INCONSISTENT_CLUSTER_ID: Error = _

source

pub const TRANSACTIONAL_ID_NOT_FOUND: Error = _

source

pub const FETCH_SESSION_TOPIC_ID_ERROR: Error = _

source

pub const INELIGIBLE_REPLICA: Error = _

source

pub const NEW_LEADER_ELECTED: Error = _

source

pub const OFFSET_MOVED_TO_TIERED_STORAGE: Error = _

source

pub const FENCED_MEMBER_EPOCH: Error = _

source

pub const UNRELEASED_INSTANCE_ID: Error = _

source

pub const UNSUPPORTED_ASSIGNOR: Error = _

source

pub fn code(&self) -> i16

source

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

source

pub fn retryable(&self) -> bool

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

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 Error

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.