Struct bip_handshake::HandshakerConfig
[−]
[src]
pub struct HandshakerConfig { /* fields omitted */ }
Configures the internals of a Handshaker
.
Methods
impl HandshakerConfig
[src]
fn set_sink_buffer_size(&mut self, size: usize)
Sets the buffer size that the HandshakeSink
uses internally
to hold InitiateMessage
s before they are processed.
fn sink_buffer_size(&self) -> usize
Gets the sink buffer size.
fn set_wait_buffer_size(&mut self, size: usize)
Sets the buffer size that Handshaker
uses internally
to store handshake connections before they are processed.
fn wait_buffer_size(&self) -> usize
Gets the wait buffer size.
fn set_done_buffer_size(&mut self, size: usize)
Sets the buffer size that HandshakeStream
uses internally
to store processed handshake connections before they are yielded.
fn done_buffer_size(&self) -> usize
Gets the done buffer size.
fn set_handshake_timeout(&mut self, timeout: Duration)
Sets the handshake timeout that Handshaker
uses to
make sure peers dont take too long to respond to us.
fn handshake_timeout(&self) -> Duration
Gets the handshake 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