Struct stun::client::ClientBuilder[][src]

pub struct ClientBuilder { /* fields omitted */ }

Implementations

with_rto sets client RTO as defined in STUN RFC.

with_timeout_rate sets RTO timer minimum resolution.

with_buffer_size sets buffer size.

with_collector rests client timeout collector, the implementation of ticker which calls function on each tick.

with_conn sets transport connection

with_no_retransmit disables retransmissions and sets RTO to DEFAULT_MAX_ATTEMPTS * DEFAULT_RTO which will be effectively time out if not set. Useful for TCP connections where transport handles RTO.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.