pub struct SocketManager { /* private fields */ }
Implementations§
Source§impl SocketManager
impl SocketManager
pub fn udp_socket_manager_as_ref(&self) -> Option<&Arc<UdpSocketManager>>
pub fn tcp_socket_manager_as_ref(&self) -> Option<&Arc<TcpSocketManager>>
Source§impl SocketManager
impl SocketManager
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 fn try_send_to(&self, buf: BytesMut, route_key: &RouteKey) -> Result<()>
Sourcepub async fn send_to_addr<A: Into<SocketAddr>>(
&self,
connect_protocol: ConnectProtocol,
buf: BytesMut,
addr: A,
) -> Result<()>
pub async fn send_to_addr<A: Into<SocketAddr>>( &self, connect_protocol: ConnectProtocol, buf: BytesMut, addr: A, ) -> Result<()>
Writing buf
to the target denoted by SocketAddr with the specified protocol
Trait Implementations§
Source§impl Clone for SocketManager
impl Clone for SocketManager
Source§fn clone(&self) -> SocketManager
fn clone(&self) -> SocketManager
Returns a duplicate 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 SocketManager
impl !RefUnwindSafe for SocketManager
impl Send for SocketManager
impl Sync for SocketManager
impl Unpin for SocketManager
impl !UnwindSafe for SocketManager
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