pub struct TokioBackend;
Available on crate feature
tokio-backend
only.Expand description
Backend for hyper-client-sockets that is implemented via the Tokio reactor.
Trait Implementations§
Source§impl Backend for TokioBackend
impl Backend for TokioBackend
Source§type UnixIo = TokioIo<UnixStream>
type UnixIo = TokioIo<UnixStream>
Available on crate feature
unix
only.An IO object representing a connected Unix socket.
Source§type VsockIo = TokioVsockIo
type VsockIo = TokioVsockIo
Available on crate feature
vsock
only.An IO object representing a connected virtio-vsock socket.
Source§type FirecrackerIo = TokioIo<UnixStream>
type FirecrackerIo = TokioIo<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 TokioBackend
impl Clone for TokioBackend
Source§fn clone(&self) -> TokioBackend
fn clone(&self) -> TokioBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TokioBackend
impl RefUnwindSafe for TokioBackend
impl Send for TokioBackend
impl Sync for TokioBackend
impl Unpin for TokioBackend
impl UnwindSafe for TokioBackend
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