Struct thingvellir::ServiceBuilder
source · pub struct ServiceBuilder<Key, Data> { /* private fields */ }
Implementations§
source§impl<Key: Send + Clone + Hash + Eq + Display + 'static, Data: ServiceData> ServiceBuilder<Key, Data>
impl<Key: Send + Clone + Hash + Eq + Display + 'static, Data: ServiceData> ServiceBuilder<Key, Data>
pub fn num_shards(self, num_shards: u8) -> Self
pub fn shard_persist_queue_capacity( self, shard_persist_queue_capacity: usize ) -> Self
pub fn lru_candidates_num_probes(self, lru_candidates_num_probes: u16) -> Self
pub fn shard_sender_channel_buffer_size( self, shard_sender_channel_buffer_size: usize ) -> Self
pub fn cache_expiration_probe_interval( self, cache_expiration_probe_interval: Duration ) -> Self
pub fn cache_expiration_probe_keys_per_tick( self, cache_expiration_probe_keys_per_tick: usize ) -> Self
sourcepub fn runtime_mode(self, runtime_mode: RuntimeMode) -> Self
pub fn runtime_mode(self, runtime_mode: RuntimeMode) -> Self
Sets the runtime mode of the service. See RuntimeMode
for more information.
pub fn build<UpstreamFactoryT: UpstreamFactory<Key, Data>>( self, upstream_factory: UpstreamFactoryT ) -> (ServiceHandle<Key, Data>, ShutdownHandle)
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>
impl<Key, Data> Sync for ServiceBuilder<Key, Data>
impl<Key, Data> Unpin for ServiceBuilder<Key, Data>
impl<Key, Data> UnwindSafe for ServiceBuilder<Key, Data>where
Data: UnwindSafe,
Key: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more