Struct paho_mqtt::disconnect_options::DisconnectOptionsBuilder
[−]
[src]
pub struct DisconnectOptionsBuilder { /* fields omitted */ }
Methods
impl DisconnectOptionsBuilder
[src]
fn new() -> DisconnectOptionsBuilder
fn timeout(&mut self, timeout: Duration) -> &mut DisconnectOptionsBuilder
Sets the time interval to allow the disconnect to complete. This specifies the time to allow in-flight messages to complete.
Arguments
timeout
The time interval to allow the disconnect to
complete. This has a resolution of seconds.
fn finalize(&self) -> DisconnectOptions
Finalize the builder to create the connect options.