Struct litep2p::protocol::request_response::Config
source · pub struct Config { /* private fields */ }
Expand description
Request-response protocol configuration.
Implementations§
source§impl Config
impl Config
sourcepub fn new(
protocol_name: ProtocolName,
fallback_names: Vec<ProtocolName>,
max_message_size: usize,
timeout: Duration,
max_concurrent_inbound_request: Option<usize>,
) -> (Self, RequestResponseHandle)
pub fn new( protocol_name: ProtocolName, fallback_names: Vec<ProtocolName>, max_message_size: usize, timeout: Duration, max_concurrent_inbound_request: Option<usize>, ) -> (Self, RequestResponseHandle)
Create new Config
.
Auto Trait Implementations§
impl Freeze for Config
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