pub struct ClientConfig<'a> {
pub host: Host<'a>,
pub port: Option<u16>,
pub client_id: &'a str,
pub credentials: Option<ClientCredentials<'a>>,
pub auto_subscribes: Vec<AutoSubscribe, 10>,
}Fields§
§host: Host<'a>§port: Option<u16>§client_id: &'a str§credentials: Option<ClientCredentials<'a>>§auto_subscribes: Vec<AutoSubscribe, 10>Implementations§
Source§impl<'a> ClientConfig<'a>
impl<'a> ClientConfig<'a>
pub fn new( host: Host<'a>, port: Option<u16>, client_id: &'a str, credentials: Option<ClientCredentials<'a>>, ) -> Self
pub fn new_with_auto_subscribes<'b>( host: Host<'a>, port: Option<u16>, client_id: &'a str, credentials: Option<ClientCredentials<'a>>, auto_subscribes: impl Iterator<Item = &'b str>, qos: QoS, ) -> Self
Trait Implementations§
Source§impl<'a> Clone for ClientConfig<'a>
impl<'a> Clone for ClientConfig<'a>
Source§fn clone(&self) -> ClientConfig<'a>
fn clone(&self) -> ClientConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ClientConfig<'a>
impl<'a> RefUnwindSafe for ClientConfig<'a>
impl<'a> Send for ClientConfig<'a>
impl<'a> Sync for ClientConfig<'a>
impl<'a> Unpin for ClientConfig<'a>
impl<'a> UnwindSafe for ClientConfig<'a>
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