pub struct ClientConfig {
pub session_expiry_interval: SessionExpiryInterval,
pub maximum_accepted_remaining_length: u32,
}Expand description
Configuration of the client which must be upheld by the server.
Fields§
§session_expiry_interval: SessionExpiryIntervalThe session expiry interval requested by the client.
This field is used to determine whether a non-zero session expiry interval
can be used when disconnecting.
This value is configured when calling crate::client::Client::connect
from the value in crate::client::options::ConnectOptions
maximum_accepted_remaining_length: u32The maximum packet size the client is willing to accept transformed into the
maximum value of the remaining length that is therefore accepted.
This value is configured when calling crate::client::Client::connect
from the value in crate::client::options::ConnectOptions
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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