pub struct Config {
pub client_config: SbdClientConfig,
pub listener: bool,
pub max_connections: usize,
pub max_idle: Duration,
}Expand description
Configuration for setting up an SbdClientCrypto connection.
Fields§
§client_config: SbdClientConfigConfig required for the sbd client itself.
listener: boolIf true we will accept incoming “connections”, otherwise
messages from nodes we didn’t explicitly “connect” to will
be ignored.
max_connections: usizeMax connection count.
max_idle: DurationMax time without receiving before a connection is “closed”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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