pub struct VsockConn {
pub fd: OwnedFd,
pub mode: IoMode,
}Expand description
A connected vsock stream to the guest.
The consumer builds its transport from fd — the port hands over a raw
stream socket, not an I/O object — and picks the transport style from
mode. The descriptor’s blocking flag is unspecified; the consumer sets
what its reactor needs.
Fields§
§fd: OwnedFdThe connected stream socket, owned by the consumer from here on.
mode: IoModeWhich transport style the driver requires on this socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VsockConn
impl RefUnwindSafe for VsockConn
impl Send for VsockConn
impl Sync for VsockConn
impl Unpin for VsockConn
impl UnsafeUnpin for VsockConn
impl UnwindSafe for VsockConn
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