pub struct Broker(/* private fields */);Expand description
Broker settings. Credentials and private keys stay out of Debug output.
Implementations§
Source§impl Broker
impl Broker
Sourcepub fn tls(
client_id: &str,
host: &str,
port: u16,
ca: Vec<u8>,
identity: Option<(Vec<u8>, Vec<u8>)>,
) -> Result<Self, Error>
pub fn tls( client_id: &str, host: &str, port: u16, ca: Vec<u8>, identity: Option<(Vec<u8>, Vec<u8>)>, ) -> Result<Self, Error>
Verify the broker against PEM trust anchors. Supply a PEM certificate chain
and private key when mutual TLS is required. TLS uses crate::CRYPTO_PROVIDER.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Broker
impl !RefUnwindSafe for Broker
impl !UnwindSafe for Broker
impl Send for Broker
impl Sync for Broker
impl Unpin for Broker
impl UnsafeUnpin for Broker
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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