[][src]Struct tcb::configuration::middleware_configuration::Configuration

pub struct Configuration {
    pub thread_stack_size: usize,
    pub middleware_thread_stack_size: usize,
    pub stream_sender_timeout: u64,
    pub track_causal_stability: bool,
    pub batching: Batching,
}

Wrapper for the middleware configurations.

Fields

thread_stack_size: usize

Stack size of the spawned Reader/Sender threads in bytes.

middleware_thread_stack_size: usize

Stack size of the main Middleware thread in bytes.

stream_sender_timeout: u64

Timeout in microseconds used by the Sender thread for reading messages from the channel.

track_causal_stability: bool

Stability calculation flag.

batching: Batching

Parameters that set message batching.

Implementations

impl Configuration[src]

pub fn get_stream_sender_timeout(&self) -> Duration[src]

Returns the timeout wrapped in a Duration.

Trait Implementations

impl Clone for Configuration[src]

impl Debug for Configuration[src]

impl<'de> Deserialize<'de> for Configuration[src]

impl Serialize for Configuration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.