pub struct UdpPipe { /* private fields */ }Implementations§
source§impl UdpPipe
impl UdpPipe
sourcepub fn new(config: UdpPipeConfig) -> Result<UdpPipe>
pub fn new(config: UdpPipeConfig) -> Result<UdpPipe>
Construct a UDP pipe with the specified configuration
sourcepub async fn accept(&mut self) -> Result<UdpPipeLine>
pub async fn accept(&mut self) -> Result<UdpPipeLine>
Accept UDP pipelines from this kind pipe
sourcepub fn main_pipeline_len(&self) -> usize
pub fn main_pipeline_len(&self) -> usize
The number of pipelines established by main UDP sockets(IPv4)
sourcepub fn v4_pipeline_len(&self) -> usize
pub fn v4_pipeline_len(&self) -> usize
The number of pipelines established by main UDP sockets(IPv4)
sourcepub fn v6_pipeline_len(&self) -> usize
pub fn v6_pipeline_len(&self) -> usize
The number of pipelines established by main UDP sockets(IPv6)
sourcepub fn writer_ref(&self) -> UdpPipeWriterRef<'_>
pub fn writer_ref(&self) -> UdpPipeWriterRef<'_>
Acquire a shared reference for writing to the pipe
Auto Trait Implementations§
impl Freeze for UdpPipe
impl !RefUnwindSafe for UdpPipe
impl Send for UdpPipe
impl Sync for UdpPipe
impl Unpin for UdpPipe
impl !UnwindSafe for UdpPipe
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