[][src]Struct over_there_core::ClientBuilder

pub struct ClientBuilder<A, B> where
    A: Authenticator,
    B: Bicrypter
{ /* fields omitted */ }

Builder for Client.

Methods

impl<A: Clone, B: Clone> ClientBuilder<A, B> where
    A: Authenticator,
    B: Bicrypter
[src]

pub fn packet_ttl(&mut self, value: Duration) -> &mut Self[src]

TTL to collect all packets for a msg

pub fn authenticator(&mut self, value: A) -> &mut Self[src]

Used to sign & verify msgs

pub fn bicrypter(&mut self, value: B) -> &mut Self[src]

Used to encrypt & decrypt msgs

pub fn transport(&mut self, value: Transport) -> &mut Self[src]

Transportation mechanism & address to listen on

pub fn buffer(&mut self, value: usize) -> &mut Self[src]

Internal buffer for cross-thread messaging

pub fn build(&self) -> Result<Client<A, B>, String>[src]

Builds a new Client.

Errors

If a required field has not been initialized.

Trait Implementations

impl<A: Clone, B: Clone> Clone for ClientBuilder<A, B> where
    A: Authenticator,
    B: Bicrypter
[src]

impl<A: Default, B: Default> Default for ClientBuilder<A, B> where
    A: Authenticator,
    B: Bicrypter
[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for ClientBuilder<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> Send for ClientBuilder<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for ClientBuilder<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for ClientBuilder<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for ClientBuilder<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,