pub struct DispatcherBuilder { /* private fields */ }Expand description
Builder for configuring a Dispatcher.
Implementations§
Source§impl DispatcherBuilder
impl DispatcherBuilder
pub fn new() -> Self
pub fn host(self, host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn max_connections(self, max: u32) -> Self
pub fn heartbeat_interval(self, ms: u64) -> Self
pub fn heartbeat_timeout(self, ms: u64) -> Self
pub fn build(self) -> Dispatcher
Trait Implementations§
Source§impl Clone for DispatcherBuilder
impl Clone for DispatcherBuilder
Source§fn clone(&self) -> DispatcherBuilder
fn clone(&self) -> DispatcherBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatcherBuilder
impl Debug for DispatcherBuilder
Auto Trait Implementations§
impl Freeze for DispatcherBuilder
impl RefUnwindSafe for DispatcherBuilder
impl Send for DispatcherBuilder
impl Sync for DispatcherBuilder
impl Unpin for DispatcherBuilder
impl UnsafeUnpin for DispatcherBuilder
impl UnwindSafe for DispatcherBuilder
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