Struct virtual_net::client::RemoteCommon
source · struct RemoteCommon {
tx: RemoteTx<MessageRequest>,
rx: Mutex<RemoteRx<MessageResponse>>,
request_seed: AtomicU64,
requests: Mutex<HashMap<u64, RequestTx>>,
socket_seed: AtomicU64,
recv_tx: Mutex<HashMap<SocketId, Sender<Vec<u8>>>>,
recv_with_addr_tx: Mutex<HashMap<SocketId, Sender<DataWithAddr>>>,
accept_tx: Mutex<HashMap<SocketId, Sender<SocketWithAddr>>>,
sent_tx: Mutex<HashMap<SocketId, Sender<u64>>>,
handlers: Mutex<HashMap<SocketId, Box<dyn InterestHandler + Send + Sync>>>,
stall: Arc<Mutex<()>>,
}
Fields§
§tx: RemoteTx<MessageRequest>
§rx: Mutex<RemoteRx<MessageResponse>>
§request_seed: AtomicU64
§requests: Mutex<HashMap<u64, RequestTx>>
§socket_seed: AtomicU64
§recv_tx: Mutex<HashMap<SocketId, Sender<Vec<u8>>>>
§recv_with_addr_tx: Mutex<HashMap<SocketId, Sender<DataWithAddr>>>
§accept_tx: Mutex<HashMap<SocketId, Sender<SocketWithAddr>>>
§sent_tx: Mutex<HashMap<SocketId, Sender<u64>>>
§handlers: Mutex<HashMap<SocketId, Box<dyn InterestHandler + Send + Sync>>>
§stall: Arc<Mutex<()>>
Implementations§
source§impl RemoteCommon
impl RemoteCommon
async fn io_iface(&self, req: RequestType) -> ResponseType
fn io_iface_fire_and_forget(&self, req: RequestType) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RemoteCommon
impl !RefUnwindSafe for RemoteCommon
impl Send for RemoteCommon
impl Sync for RemoteCommon
impl Unpin for RemoteCommon
impl !UnwindSafe for RemoteCommon
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.