pub struct ClientBuilder<A, B>where
A: Authenticator,
B: Bicrypter,{ /* private fields */ }Expand description
Builder for Client.
Implementations§
Source§impl<A, B> ClientBuilder<A, B>
impl<A, B> ClientBuilder<A, B>
Sourcepub fn packet_ttl(&mut self, value: Duration) -> &mut Self
pub fn packet_ttl(&mut self, value: Duration) -> &mut Self
TTL to collect all packets for a msg
Sourcepub fn authenticator(&mut self, value: A) -> &mut Self
pub fn authenticator(&mut self, value: A) -> &mut Self
Used to sign & verify msgs
Trait Implementations§
Source§impl<A, B> Clone for ClientBuilder<A, B>
impl<A, B> Clone for ClientBuilder<A, B>
Source§fn clone(&self) -> ClientBuilder<A, B>
fn clone(&self) -> ClientBuilder<A, B>
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 moreSource§impl<A, B> Default for ClientBuilder<A, B>
impl<A, B> Default for ClientBuilder<A, B>
Source§fn default() -> ClientBuilder<A, B>
fn default() -> ClientBuilder<A, B>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<A, B> Freeze for ClientBuilder<A, B>
impl<A, B> RefUnwindSafe for ClientBuilder<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ClientBuilder<A, B>
impl<A, B> Sync for ClientBuilder<A, B>
impl<A, B> Unpin for ClientBuilder<A, B>
impl<A, B> UnsafeUnpin for ClientBuilder<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ClientBuilder<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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