pub struct UdpPipeLine { /* private fields */ }Implementations§
source§impl UdpPipeLine
impl UdpPipeLine
sourcepub async fn send_to_addr<A: Into<SocketAddr>>(
&self,
buf: &[u8],
addr: A,
) -> Result<()>
pub async fn send_to_addr<A: Into<SocketAddr>>( &self, buf: &[u8], addr: A, ) -> Result<()>
Writing buf to the target denoted by SocketAddr via this pipeline
sourcepub fn try_send_to_addr<A: Into<SocketAddr>>(
&self,
buf: &[u8],
addr: A,
) -> Result<()>
pub fn try_send_to_addr<A: Into<SocketAddr>>( &self, buf: &[u8], addr: A, ) -> Result<()>
Try to write buf to the target denoted by SocketAddr via this pipeline
sourcepub async fn send_to(&self, buf: &[u8], route_key: &RouteKey) -> Result<()>
pub async fn send_to(&self, buf: &[u8], route_key: &RouteKey) -> Result<()>
Writing buf to the target denoted by route_key via this pipeline
pub async fn send_buf_to( &self, buf: BytesMut, route_key: &RouteKey, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdpPipeLine
impl !RefUnwindSafe for UdpPipeLine
impl Send for UdpPipeLine
impl Sync for UdpPipeLine
impl Unpin for UdpPipeLine
impl !UnwindSafe for UdpPipeLine
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