#[repr(C)]pub struct PamojaMqttTls {
pub ca_pem: *const u8,
pub ca_pem_len: usize,
pub certificate_pem: *const u8,
pub certificate_pem_len: usize,
pub key_pem: *const u8,
pub key_pem_len: usize,
}Expand description
How a connection is secured with TLS, conventionally on port 8883.
Each PEM is a borrowed run of bytes with its length. A ca_pem_len of 0 trusts the
system’s certificate authorities; a client certificate and its key are both given or
both left at 0.
Fields§
§ca_pem: *const u8The certificate authorities to trust, as PEM.
ca_pem_len: usizeHow many bytes ca_pem holds, or 0 to trust the system’s authorities.
certificate_pem: *const u8A client certificate to present, as PEM.
certificate_pem_len: usizeHow many bytes certificate_pem holds, or 0 for none.
key_pem: *const u8The client certificate’s private key, as PEM.
key_pem_len: usizeHow many bytes key_pem holds, or 0 for none.
Auto Trait Implementations§
impl !Send for PamojaMqttTls
impl !Sync for PamojaMqttTls
impl Freeze for PamojaMqttTls
impl RefUnwindSafe for PamojaMqttTls
impl Unpin for PamojaMqttTls
impl UnsafeUnpin for PamojaMqttTls
impl UnwindSafe for PamojaMqttTls
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