pub struct PipeConfig {
pub first_latency: bool,
pub multi_pipeline: usize,
pub route_idle_time: Duration,
pub udp_pipe_config: Option<UdpPipeConfig>,
pub tcp_pipe_config: Option<TcpPipeConfig>,
pub enable_extend: bool,
}Fields§
§first_latency: bool§multi_pipeline: usize§route_idle_time: Duration§udp_pipe_config: Option<UdpPipeConfig>§tcp_pipe_config: Option<TcpPipeConfig>§enable_extend: boolImplementations§
source§impl PipeConfig
impl PipeConfig
pub fn new(tcp_init_codec: Box<dyn InitCodec>) -> PipeConfig
source§impl PipeConfig
impl PipeConfig
source§impl PipeConfig
impl PipeConfig
pub fn empty() -> Self
pub fn set_first_latency(self, first_latency: bool) -> Self
pub fn set_main_pipeline_num(self, main_pipeline_num: usize) -> Self
pub fn set_enable_extend(self, enable_extend: bool) -> Self
pub fn set_udp_pipe_config(self, udp_pipe_config: UdpPipeConfig) -> Self
pub fn set_tcp_pipe_config(self, tcp_pipe_config: TcpPipeConfig) -> Self
pub fn check(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipeConfig
impl !RefUnwindSafe for PipeConfig
impl Send for PipeConfig
impl Sync for PipeConfig
impl Unpin for PipeConfig
impl !UnwindSafe for PipeConfig
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