Skip to main content

PamojaMqttTls

Struct PamojaMqttTls 

Source
#[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 u8

The certificate authorities to trust, as PEM.

§ca_pem_len: usize

How many bytes ca_pem holds, or 0 to trust the system’s authorities.

§certificate_pem: *const u8

A client certificate to present, as PEM.

§certificate_pem_len: usize

How many bytes certificate_pem holds, or 0 for none.

§key_pem: *const u8

The client certificate’s private key, as PEM.

§key_pem_len: usize

How many bytes key_pem holds, or 0 for none.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.