pub struct ClientConfig {
pub upstream_addr: String,
pub container_id: String,
pub max_frame_size: u32,
pub tls_active: bool,
pub plain_credentials: Option<(String, String)>,
pub io_timeout: Option<Duration>,
}Expand description
Spec §2.2 — Outbound-Bridge-Konfiguration.
Fields§
§upstream_addr: StringUpstream-Adresse (z.B. "broker.example:5672").
container_id: StringContainer-Id, die wir im Open senden.
max_frame_size: u32Max-Frame-Size (DoS-Cap).
tls_active: boolIst TLS aktiv? (Beeinflusst PLAIN-Auswahl Spec §10.2.1.)
plain_credentials: Option<(String, String)>SASL-Credential fuer PLAIN (Username, Password). Falls
None und PLAIN trotzdem ausgewaehlt wird, faellt
select_outbound auf ANONYMOUS zurueck.
io_timeout: Option<Duration>Read-/Write-Timeout pro Connection.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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