pub struct SessionConfig {
pub limits: SessionLimits,
pub reads_hello: bool,
pub acks_subscribe: bool,
}Expand description
Per-session engine knobs.
Fields§
§limits: SessionLimitsConnection cap (consulted by serve) and per-connection subscription
cap (by run_session).
reads_hello: boolIf true, read one frame before authenticating and pass it to
Dispatch::authenticate as an in-band Hello. If false (default),
authenticate from PeerInfo alone.
acks_subscribe: boolIf true, emit an explicit Outbound::Subscribed ack before the first
event. If false (default) the ack is implicit (events carry the
subscription id back).
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
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 moreSource§impl Debug for SessionConfig
impl Debug for SessionConfig
Source§impl Default for SessionConfig
impl Default for SessionConfig
Source§fn default() -> SessionConfig
fn default() -> SessionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
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