Struct bip_handshake::HandshakerConfig
[−]
[src]
pub struct HandshakerConfig { /* fields omitted */ }
Configures the internals of a Handshaker
.
Methods
impl HandshakerConfig
[src]
fn with_sink_buffer_size(self, size: usize) -> HandshakerConfig
Sets the buffer size that the HandshakeSink
uses internally
to hold InitiateMessage
s before they are processed.
fn with_wait_buffer_size(self, size: usize) -> HandshakerConfig
Sets the buffer size that Handshaker
uses internally
to store handshake connections before they are processed.
fn with_done_buffer_size(self, size: usize) -> HandshakerConfig
Sets the buffer size that HandshakeStream
uses internally
to store processed handshake connections before they are yielded.
fn with_handshake_timeout(self, timeout: Duration) -> HandshakerConfig
Sets the handshake timeout that Handshaker
uses to
make sure peers dont take too long to respond to us.
fn with_connect_timeout(self, timeout: Duration) -> HandshakerConfig
Sets the connect timeout that Handshaker
uses to
make sure peers dont take too long to respond to our
connection (regardless of the underlying transport).
fn sink_buffer_size(&self) -> usize
Gets the sink buffer size.
fn wait_buffer_size(&self) -> usize
Gets the wait buffer size.
fn done_buffer_size(&self) -> usize
Gets the done buffer size.
fn handshake_timeout(&self) -> Duration
Gets the handshake timeout.
fn connect_timeout(&self) -> Duration
Gets the handshake connection initiation timeout.
Trait Implementations
impl PartialEq for HandshakerConfig
[src]
fn eq(&self, __arg_0: &HandshakerConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HandshakerConfig) -> bool
This method tests for !=
.
impl Eq for HandshakerConfig
[src]
impl Debug for HandshakerConfig
[src]
impl Copy for HandshakerConfig
[src]
impl Clone for HandshakerConfig
[src]
fn clone(&self) -> HandshakerConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for HandshakerConfig
[src]
fn default() -> HandshakerConfig
Returns the "default value" for a type. Read more