Struct libp2p_request_response::Config
source · pub struct Config { /* private fields */ }
Expand description
The configuration for a Behaviour
protocol.
Implementations§
source§impl Config
impl Config
sourcepub fn set_connection_keep_alive(&mut self, v: Duration) -> &mut Self
👎Deprecated: Set a global idle connection timeout via SwarmBuilder::idle_connection_timeout
instead.
pub fn set_connection_keep_alive(&mut self, v: Duration) -> &mut Self
SwarmBuilder::idle_connection_timeout
instead.Sets the keep-alive timeout of idle connections.
sourcepub fn set_request_timeout(&mut self, v: Duration) -> &mut Self
pub fn set_request_timeout(&mut self, v: Duration) -> &mut Self
Sets the timeout for inbound and outbound requests.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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