pub struct MosquittoClient {
pub client: *mut mosquitto,
}Fields§
§client: *mut mosquittoTrait Implementations§
Source§impl MosquittoClientContext for MosquittoClient
impl MosquittoClientContext for MosquittoClient
Source§fn get_address(&self) -> Option<IpAddr>
fn get_address(&self) -> Option<IpAddr>
Binding to mosquitto_client_address
NOTE: stored sessions might be disconnected upon a restart, and then the client being
disconnected will have no IP address, the address will then be of type None
Source§fn is_clean_session(&self) -> bool
fn is_clean_session(&self) -> bool
Binding to mosquitto_client_clean_session
Source§fn get_keepalive(&self) -> i32
fn get_keepalive(&self) -> i32
Binding to mosquitto_client_keepalive
Source§fn get_certificate(&self) -> Option<&[u8]>
fn get_certificate(&self) -> Option<&[u8]>
Binding to mosquitto_client_certificate
Source§fn get_protocol(&self) -> MosquittoClientProtocol
fn get_protocol(&self) -> MosquittoClientProtocol
Binding to mosquitto_client_protocol
Source§fn get_protocol_version(&self) -> MosquittoClientProtocolVersion
fn get_protocol_version(&self) -> MosquittoClientProtocolVersion
Binding to mosquitto_client_protocol_version
Source§fn get_sub_count(&self) -> i32
fn get_sub_count(&self) -> i32
Binding to mosquitto_client_sub_count
Source§fn get_username(&self) -> String
fn get_username(&self) -> String
Binding to mosquitto_client_username
Auto Trait Implementations§
impl Freeze for MosquittoClient
impl RefUnwindSafe for MosquittoClient
impl !Send for MosquittoClient
impl !Sync for MosquittoClient
impl Unpin for MosquittoClient
impl UnwindSafe for MosquittoClient
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