pub struct VsockConnector<B: Backend> { /* private fields */ }
Available on crate features
vsock
and hyper-util
only.Expand description
A hyper-util connector that accepts hex-encoded virtio-vsock URIs and uses them to connect to virtio-vsock sockets via the given Backend.
Implementations§
Trait Implementations§
Source§impl<B: Clone + Backend> Clone for VsockConnector<B>
impl<B: Clone + Backend> Clone for VsockConnector<B>
Source§fn clone(&self) -> VsockConnector<B>
fn clone(&self) -> VsockConnector<B>
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 moreSource§impl<B: Backend> Service<Uri> for VsockConnector<B>
impl<B: Backend> Service<Uri> for VsockConnector<B>
Source§type Future = Pin<Box<dyn Future<Output = Result<<VsockConnector<B> as Service<Uri>>::Response, <VsockConnector<B> as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<VsockConnector<B> as Service<Uri>>::Response, <VsockConnector<B> as Service<Uri>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<B> Freeze for VsockConnector<B>
impl<B> RefUnwindSafe for VsockConnector<B>where
B: RefUnwindSafe,
impl<B> Send for VsockConnector<B>where
B: Send,
impl<B> Sync for VsockConnector<B>where
B: Sync,
impl<B> Unpin for VsockConnector<B>where
B: Unpin,
impl<B> UnwindSafe for VsockConnector<B>where
B: UnwindSafe,
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