pub struct ServiceBuilder<Key, Data> { /* private fields */ }

Implementations§

source§

impl<Key: Send + Clone + Hash + Eq + Display + 'static, Data: ServiceData> ServiceBuilder<Key, Data>

source

pub fn num_shards(self, num_shards: u8) -> Self

source

pub fn shard_persist_queue_capacity( self, shard_persist_queue_capacity: usize ) -> Self

source

pub fn lru_candidates_num_probes(self, lru_candidates_num_probes: u16) -> Self

source

pub fn shard_sender_channel_buffer_size( self, shard_sender_channel_buffer_size: usize ) -> Self

source

pub fn cache_expiration_probe_interval( self, cache_expiration_probe_interval: Duration ) -> Self

source

pub fn cache_expiration_probe_keys_per_tick( self, cache_expiration_probe_keys_per_tick: usize ) -> Self

source

pub fn runtime_mode(self, runtime_mode: RuntimeMode) -> Self

Sets the runtime mode of the service. See RuntimeMode for more information.

source

pub fn build<UpstreamFactoryT: UpstreamFactory<Key, Data>>( self, upstream_factory: UpstreamFactoryT ) -> (ServiceHandle<Key, Data>, ShutdownHandle)

source

pub fn build_mutable<UpstreamFactoryT: MutableUpstreamFactory<Key, Data>>( self, upstream_factory: UpstreamFactoryT, default_commit_policy: DefaultCommitPolicy ) -> (MutableServiceHandle<Key, Data>, ShutdownHandle)

Auto Trait Implementations§

§

impl<Key, Data> Freeze for ServiceBuilder<Key, Data>

§

impl<Key, Data> RefUnwindSafe for ServiceBuilder<Key, Data>
where Data: RefUnwindSafe, Key: RefUnwindSafe,

§

impl<Key, Data> Send for ServiceBuilder<Key, Data>
where Data: Send, Key: Send,

§

impl<Key, Data> Sync for ServiceBuilder<Key, Data>
where Data: Sync, Key: Sync,

§

impl<Key, Data> Unpin for ServiceBuilder<Key, Data>
where Data: Unpin, Key: Unpin,

§

impl<Key, Data> UnwindSafe for ServiceBuilder<Key, Data>
where Data: UnwindSafe, Key: UnwindSafe,

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> 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, U> TryFrom<U> for T
where 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 T
where 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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V