pub struct SessionOptionsBuilder { /* private fields */ }
Expand description
Builder for SessionOptions
.
Implementations§
Source§impl SessionOptionsBuilder
impl SessionOptionsBuilder
Sourcepub fn connection_settings(self, value: MqttConnectionSettings) -> Self
pub fn connection_settings(self, value: MqttConnectionSettings) -> Self
MQTT Connection Settings for configuring the Session
Sourcepub fn reconnect_policy(self, value: Box<dyn ReconnectPolicy>) -> Self
pub fn reconnect_policy(self, value: Box<dyn ReconnectPolicy>) -> Self
Reconnect Policy to by used by the Session
Sourcepub fn outgoing_max(self, value: usize) -> Self
pub fn outgoing_max(self, value: usize) -> Self
Maximum number of queued outgoing messages not yet accepted by the MQTT Session
Sourcepub fn aio_broker_features(self, value: bool) -> Self
pub fn aio_broker_features(self, value: bool) -> Self
Indicates if the Session should use features specific for use with the AIO MQTT Broker
Sourcepub fn build(self) -> Result<SessionOptions, SessionOptionsBuilderError>
pub fn build(self) -> Result<SessionOptions, SessionOptionsBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionOptionsBuilder
impl !RefUnwindSafe for SessionOptionsBuilder
impl !Send for SessionOptionsBuilder
impl !Sync for SessionOptionsBuilder
impl Unpin for SessionOptionsBuilder
impl !UnwindSafe for SessionOptionsBuilder
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