pub struct ConnectionSettings {
pub connection_timeout_ms: u16,
pub max_payload_size: usize,
pub max_inflight_count: usize,
pub auth: Option<HashMap<String, String>>,
pub external_auth: Option<AuthHandler>,
pub dynamic_filters: bool,
}Fields§
§connection_timeout_ms: u16§max_payload_size: usize§max_inflight_count: usize§auth: Option<HashMap<String, String>>§external_auth: Option<AuthHandler>§dynamic_filters: boolImplementations§
Source§impl ConnectionSettings
impl ConnectionSettings
pub fn set_auth_handler<F, O>(&mut self, auth_fn: F)where
F: Fn(ClientId, AuthUser, AuthPass) -> O + Send + Sync + 'static,
O: IntoFuture<Output = bool> + 'static,
O::IntoFuture: Send,
Trait Implementations§
Source§impl Clone for ConnectionSettings
impl Clone for ConnectionSettings
Source§fn clone(&self) -> ConnectionSettings
fn clone(&self) -> ConnectionSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectionSettings
impl Debug for ConnectionSettings
Source§impl<'de> Deserialize<'de> for ConnectionSettings
impl<'de> Deserialize<'de> for ConnectionSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectionSettings
impl !RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin for ConnectionSettings
impl !UnwindSafe for ConnectionSettings
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