Struct ServerCapabilities
pub struct ServerCapabilities {
pub max_qos: QoS,
pub retain_available: bool,
pub max_packet_size: Option<u32>,
pub topic_alias_max: u16,
pub wildcard_sub_available: bool,
pub sub_id_available: bool,
pub shared_sub_available: bool,
pub receive_max: u16,
pub server_keep_alive: Option<u16>,
}Expand description
Server capabilities extracted from CONNACK properties (§3.2.2.3).
All fields default to the most permissive values defined by the spec.
Fields§
§max_qos: QoSMaximum QoS the server supports (default: QoS::ExactlyOnce).
retain_available: boolWhether the server supports retained messages (default: true).
max_packet_size: Option<u32>Maximum packet size the server will accept. None means no limit
beyond the protocol maximum (§3.2.2.3.6).
topic_alias_max: u16Maximum topic alias value the server will accept (default: 0 = topic aliases not supported).
wildcard_sub_available: boolWhether wildcard subscriptions are available (default: true).
sub_id_available: boolWhether subscription identifiers are available (default: true).
Whether shared subscriptions are available (default: true).
receive_max: u16Receive Maximum: the maximum number of in-flight QoS > 0 publishes
the server will accept (default: 65535, §3.2.2.3.3).
server_keep_alive: Option<u16>Server-assigned keep-alive override. None means the client’s
requested value was accepted (§3.2.2.3.14).
Trait Implementations§
§impl Clone for ServerCapabilities
impl Clone for ServerCapabilities
§fn clone(&self) -> ServerCapabilities
fn clone(&self) -> ServerCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more