Enum virtual_net::server::RemoteAdapterSocket
source · enum RemoteAdapterSocket {
TcpListener {
socket: Box<dyn VirtualTcpListener + Sync + 'static>,
next_accept: Option<SocketId>,
},
TcpSocket(Box<dyn VirtualTcpSocket + Sync + 'static>),
UdpSocket(Box<dyn VirtualUdpSocket + Sync + 'static>),
RawSocket(Box<dyn VirtualRawSocket + Sync + 'static>),
IcmpSocket(Box<dyn VirtualIcmpSocket + Sync + 'static>),
}
Variants§
TcpListener
TcpSocket(Box<dyn VirtualTcpSocket + Sync + 'static>)
UdpSocket(Box<dyn VirtualUdpSocket + Sync + 'static>)
RawSocket(Box<dyn VirtualRawSocket + Sync + 'static>)
IcmpSocket(Box<dyn VirtualIcmpSocket + Sync + 'static>)
Implementations§
source§impl RemoteAdapterSocket
impl RemoteAdapterSocket
pub fn send( &mut self, common: &Arc<RemoteAdapterCommon>, socket_id: SocketId, data: Vec<u8>, req_id: Option<u64>, ) -> Option<BoxFuture<'static, ()>>
pub fn send_to( &mut self, common: &Arc<RemoteAdapterCommon>, socket_id: SocketId, data: Vec<u8>, addr: SocketAddr, req_id: u64, ) -> Option<BoxFuture<'static, ()>>
pub fn drain_reads_and_accepts( &mut self, common: &Arc<RemoteAdapterCommon>, socket_id: SocketId, ) -> Option<BoxFuture<'static, ()>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteAdapterSocket
impl !RefUnwindSafe for RemoteAdapterSocket
impl Send for RemoteAdapterSocket
impl Sync for RemoteAdapterSocket
impl Unpin for RemoteAdapterSocket
impl !UnwindSafe for RemoteAdapterSocket
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.