pub struct AsyncIoBackend;
Available on crate feature
async-io-backend
only.Expand description
Backend for hyper-client-sockets that is implemented via the async-io crate’s reactor.
Trait Implementations§
Source§impl Backend for AsyncIoBackend
impl Backend for AsyncIoBackend
Source§type UnixIo = FuturesIo<Async<UnixStream>>
type UnixIo = FuturesIo<Async<UnixStream>>
Available on crate feature
unix
only.An IO object representing a connected Unix socket.
Source§type VsockIo = AsyncVsockIo
type VsockIo = AsyncVsockIo
Available on crate feature
vsock
only.An IO object representing a connected virtio-vsock socket.
Source§type FirecrackerIo = FuturesIo<Async<UnixStream>>
type FirecrackerIo = FuturesIo<Async<UnixStream>>
Available on crate feature
firecracker
only.An IO object representing a connected Firecracker socket (a specialized Unix socket).
Source§async fn connect_to_unix_socket(
socket_path: &Path,
) -> Result<Self::UnixIo, Error>
async fn connect_to_unix_socket( socket_path: &Path, ) -> Result<Self::UnixIo, Error>
Available on crate feature
unix
only.Connect to a Unix socket at the given Path.
Source§async fn connect_to_vsock_socket(
addr: VsockAddr,
) -> Result<Self::VsockIo, Error>
async fn connect_to_vsock_socket( addr: VsockAddr, ) -> Result<Self::VsockIo, Error>
Available on crate feature
vsock
only.Connect to a virtio-vsock socket at the given vsock address.
Source§async fn connect_to_firecracker_socket(
host_socket_path: &Path,
guest_port: u32,
) -> Result<Self::FirecrackerIo, Error>
async fn connect_to_firecracker_socket( host_socket_path: &Path, guest_port: u32, ) -> Result<Self::FirecrackerIo, Error>
Available on crate feature
firecracker
only.Connect to a Firecracker socket at the given Path, establishing a tunnel to the given
guest vsock port.
Source§impl Clone for AsyncIoBackend
impl Clone for AsyncIoBackend
Source§fn clone(&self) -> AsyncIoBackend
fn clone(&self) -> AsyncIoBackend
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 AsyncIoBackend
impl RefUnwindSafe for AsyncIoBackend
impl Send for AsyncIoBackend
impl Sync for AsyncIoBackend
impl Unpin for AsyncIoBackend
impl UnwindSafe for AsyncIoBackend
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