Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig { /* private fields */ }
Expand description

Engine construction inputs compiled before any host thread starts.

Implementations§

Source§

impl EngineConfig

Source

pub const fn transaction_initialization_timeout(&self) -> Duration

Returns the engine-owned default transaction-initialization deadline.

Source

pub const fn transaction_timeout(&self) -> Duration

Returns the engine-owned default broker transaction timeout.

Source§

impl EngineConfig

Source

pub fn new(bootstrap_servers: Vec<String>) -> Self

Creates an engine configuration with engine-owned execution defaults.

Source

pub const fn with_delivery_timeout(self, delivery_timeout: Duration) -> Self

Replaces the end-to-end default producer delivery timeout.

Source

pub const fn with_admin_timeout(self, admin_timeout: Duration) -> Self

Replaces the end-to-end default admin operation timeout.

Source

pub const fn with_producer_limits( self, producer_limits: EngineProducerLimits, ) -> Self

Replaces the provisional bounded producer resource contract.

Source

pub const fn with_producer_compression( self, producer_compression: ProducerCompression, ) -> Self

Selects the RecordBatch compression policy before the host starts.

Source

pub const fn with_assigned_consumer_read_isolation( self, read_isolation: ConsumerReadIsolation, ) -> Self

Selects immutable record visibility for the sole assigned consumer.

Source

pub fn with_security(self, security: EngineSecurity) -> Self

Replaces the complete transport and broker-authentication policy.

Source

pub fn with_client_id(self, client_id: Option<String>) -> Self

Replaces the optional identity retained for future header propagation.

The pinned driver does not currently write this value into Kafka request headers.

Source

pub const fn with_assigned_consumer_fetch( self, fetch: EngineConsumerFetchConfig, ) -> Self

Replaces the sole assigned consumer’s broker Fetch policy.

Source

pub const fn with_assigned_consumer_limits( self, limits: EngineConsumerLimits, ) -> Self

Replaces the sole assigned consumer’s bounded resource capacities.

Source

pub const fn with_producer_retry( self, max_retries: u32, backoff: Duration, ) -> Self

Replaces bounded definitely-unsent retry intent.

Source

pub fn bootstrap_servers(&self) -> &[String]

Returns configured logical bootstrap endpoints.

Source

pub fn client_id(&self) -> Option<&str>

Returns the retained client identity, when configured.

The returned value does not imply request-header propagation.

Source

pub const fn delivery_timeout(&self) -> Duration

Returns the engine-owned default delivery timeout.

Source

pub const fn admin_timeout(&self) -> Duration

Returns the engine-owned default admin operation timeout.

Source

pub const fn producer_limits(&self) -> EngineProducerLimits

Returns the provisional bounded producer limits.

Source

pub const fn producer_compression(&self) -> ProducerCompression

Returns the configured producer compression policy.

Source

pub const fn assigned_consumer_read_isolation(&self) -> ConsumerReadIsolation

Returns immutable record visibility for the sole assigned consumer.

Source

pub const fn security(&self) -> &EngineSecurity

Returns the complete transport and broker-authentication policy.

Source

pub const fn assigned_consumer_fetch(&self) -> EngineConsumerFetchConfig

Returns the sole assigned consumer’s raw broker Fetch policy.

Source

pub const fn assigned_consumer_limits(&self) -> EngineConsumerLimits

Returns the sole assigned consumer’s raw resource capacities.

Source

pub const fn producer_retry_max(&self) -> u32

Returns the maximum definitely-unsent retries per producer batch.

Source

pub const fn producer_retry_backoff(&self) -> Duration

Returns the fixed delay between definitely-unsent producer attempts.

Trait Implementations§

Source§

impl Clone for EngineConfig

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 Debug for EngineConfig

Source§

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

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

impl Eq for EngineConfig

Source§

impl PartialEq for EngineConfig

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 EngineConfig

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 = !

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.