Struct exocore_discovery::server::ServerConfig [−][src]
pub struct ServerConfig { pub port: u16, pub max_payloads: usize, pub max_payload_size: usize, pub payload_expiration: Duration, pub reply_expiration: Duration, pub cleanup_interval: Duration, }
Expand description
Configuration for discovery service server.
Fields
port: u16
Port to listen on.
max_payloads: usize
Maximum number of payloads that the server can stores.
max_payload_size: usize
Maximum payload size.
payload_expiration: Duration
Maximum delay at which a payload can be retrieved before it expires and gets cleaned up.
reply_expiration: Duration
Maximum delay a reply can be made after the initial payload creation.
cleanup_interval: Duration
Interval at which expired payloads are cleaned up.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more