pub struct Client<M> { /* private fields */ }Expand description
The Client instance itself, which connects to the configured Server- Instance and manages all the underlying communication with ther Server
Implementations§
Source§impl<M> Client<M>
impl<M> Client<M>
Sourcepub fn new_with_metrics(
server: Destination,
external_port: u16,
key: Vec<u8>,
metrics_collector: M,
) -> Self
pub fn new_with_metrics( server: Destination, external_port: u16, key: Vec<u8>, metrics_collector: M, ) -> Self
Behaves the same as the new implementation with the difference being
that you can specify and provide your own Metrics-Collector.
Auto Trait Implementations§
impl<M> Freeze for Client<M>
impl<M> RefUnwindSafe for Client<M>where
M: RefUnwindSafe,
impl<M> Send for Client<M>
impl<M> Sync for Client<M>
impl<M> Unpin for Client<M>
impl<M> UnsafeUnpin for Client<M>
impl<M> UnwindSafe for Client<M>where
M: RefUnwindSafe,
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