Struct libp2p::request_response::RequestResponseConfig
source · pub struct RequestResponseConfig { /* private fields */ }
Expand description
The configuration for a RequestResponse
protocol.
Implementations§
source§impl RequestResponseConfig
impl RequestResponseConfig
sourcepub fn set_connection_keep_alive(
&mut self,
v: Duration
) -> &mut RequestResponseConfig
pub fn set_connection_keep_alive( &mut self, v: Duration ) -> &mut RequestResponseConfig
Sets the keep-alive timeout of idle connections.
sourcepub fn set_request_timeout(&mut self, v: Duration) -> &mut RequestResponseConfig
pub fn set_request_timeout(&mut self, v: Duration) -> &mut RequestResponseConfig
Sets the timeout for inbound and outbound requests.
Trait Implementations§
source§impl Clone for RequestResponseConfig
impl Clone for RequestResponseConfig
source§fn clone(&self) -> RequestResponseConfig
fn clone(&self) -> RequestResponseConfig
Returns a copy 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 Debug for RequestResponseConfig
impl Debug for RequestResponseConfig
source§impl Default for RequestResponseConfig
impl Default for RequestResponseConfig
source§fn default() -> RequestResponseConfig
fn default() -> RequestResponseConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RequestResponseConfig
impl Send for RequestResponseConfig
impl Sync for RequestResponseConfig
impl Unpin for RequestResponseConfig
impl UnwindSafe for RequestResponseConfig
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