pub struct TcpPipeWriter { /* private fields */ }Implementations§
source§impl TcpPipeWriter
impl TcpPipeWriter
pub async fn send_to_addr_multi<A: Into<SocketAddr>>( &self, buf: BytesMut, addr: A, ) -> Result<()>
sourcepub async fn send_to_addr_reuse_port<A: Into<SocketAddr>>(
&self,
buf: BytesMut,
addr: A,
) -> Result<()>
pub async fn send_to_addr_reuse_port<A: Into<SocketAddr>>( &self, buf: BytesMut, addr: A, ) -> Result<()>
Reuse the bound port to initiate a connection, which can be used to penetrate NAT1 network type.
pub async fn send_to_addr<A: Into<SocketAddr>>( &self, buf: BytesMut, addr: A, ) -> Result<()>
sourcepub async fn send_to(&self, buf: BytesMut, route_key: &RouteKey) -> Result<()>
pub async fn send_to(&self, buf: BytesMut, route_key: &RouteKey) -> Result<()>
Writing buf to the target denoted by route_key
pub async fn get( &self, addr: SocketAddr, index: usize, ) -> Result<TcpPipeWriterIndex<'_>>
Trait Implementations§
source§impl Clone for TcpPipeWriter
impl Clone for TcpPipeWriter
source§fn clone(&self) -> TcpPipeWriter
fn clone(&self) -> TcpPipeWriter
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 TcpPipeWriter
impl !RefUnwindSafe for TcpPipeWriter
impl Send for TcpPipeWriter
impl Sync for TcpPipeWriter
impl Unpin for TcpPipeWriter
impl !UnwindSafe for TcpPipeWriter
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)