pub struct ServerConfig {
pub listen_addr: String,
pub container_id: String,
pub max_frame_size: u32,
pub tls_active: bool,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
}Expand description
Server-Konfiguration fuer run_server.
Fields§
§listen_addr: StringListen-Address (z.B. "0.0.0.0:5672").
container_id: StringContainer-Id, die der Server in Open-Frames meldet.
max_frame_size: u32Max Frame-Size (DoS-Cap).
tls_active: boolIst TLS aktiv? (Beeinflusst SASL-PLAIN-Akzeptanz §10.2.1.)
read_timeout: Option<Duration>Read-Timeout pro Connection (None = unlimited; im Daemon typisch 60s = idle-timeout).
write_timeout: Option<Duration>Per-Connection Write-Timeout.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub fn default_listen() -> Self
pub fn default_listen() -> Self
Default-Konfiguration fuer 0.0.0.0:5672.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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