pub struct UdpPipeConfig {
pub main_pipeline_num: usize,
pub sub_pipeline_num: usize,
pub model: Model,
pub default_interface: Option<LocalInterface>,
pub udp_ports: Vec<u16>,
pub use_v6: bool,
pub recycle_buf: Option<RecycleBuf>,
}Fields§
§main_pipeline_num: usize§sub_pipeline_num: usize§model: Model§default_interface: Option<LocalInterface>§udp_ports: Vec<u16>§use_v6: bool§recycle_buf: Option<RecycleBuf>Implementations§
source§impl UdpPipeConfig
impl UdpPipeConfig
pub fn check(&self) -> Result<()>
pub fn set_main_pipeline_num(self, main_pipeline_num: usize) -> Self
pub fn set_sub_pipeline_num(self, sub_pipeline_num: usize) -> Self
pub fn set_model(self, model: Model) -> Self
pub fn set_default_interface(self, default_interface: LocalInterface) -> Self
pub fn set_udp_ports(self, udp_ports: Vec<u16>) -> Self
pub fn set_simple_udp_port(self, udp_port: u16) -> Self
pub fn set_use_v6(self, use_v6: bool) -> Self
Trait Implementations§
source§impl Clone for UdpPipeConfig
impl Clone for UdpPipeConfig
source§fn clone(&self) -> UdpPipeConfig
fn clone(&self) -> UdpPipeConfig
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 UdpPipeConfig
impl RefUnwindSafe for UdpPipeConfig
impl Send for UdpPipeConfig
impl Sync for UdpPipeConfig
impl Unpin for UdpPipeConfig
impl UnwindSafe for UdpPipeConfig
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)