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
impl Clone for ServerConfig
[src]
impl Clone for ServerConfig
[src]fn clone(&self) -> ServerConfig
[src]
fn clone(&self) -> ServerConfig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for ServerConfig
[src]
impl Default for ServerConfig
[src]impl Copy for ServerConfig
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,