pub struct PumpConfig {
pub read_timeout: Duration,
pub send_timeout: Duration,
pub chunk_size: usize,
pub queue_depth: usize,
}Expand description
Everything a caller needs to set up on a socket before its pumps start.
Fields§
§read_timeout: DurationSO_RCVTIMEO. NOT a shutdown mechanism — a protocol’s idle timeout is
typically hours, so what ends a parked reader is the guard’s shutdown.
send_timeout: DurationThe bound on writing one whole frame; see write_frame_deadline.
chunk_size: usizeBytes per blocking read. DEFAULT_READ_CHUNK unless the consumer’s
hosted reader uses a different one.
queue_depth: usizeDepth of both the chunk and the frame channel.
Trait Implementations§
Source§impl Clone for PumpConfig
impl Clone for PumpConfig
Source§fn clone(&self) -> PumpConfig
fn clone(&self) -> PumpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PumpConfig
impl Debug for PumpConfig
Auto Trait Implementations§
impl Freeze for PumpConfig
impl RefUnwindSafe for PumpConfig
impl Send for PumpConfig
impl Sync for PumpConfig
impl Unpin for PumpConfig
impl UnsafeUnpin for PumpConfig
impl UnwindSafe for PumpConfig
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