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§
source§impl Clone for PipeConfig
impl Clone for PipeConfig
source§fn clone(&self) -> PipeConfig
fn clone(&self) -> PipeConfig
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 moreAuto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)