pub struct PublishedSocket {
pub vsock_port: u32,
pub guest_path: String,
pub direction: SocketDirection,
}Expand description
One published socket, as the guest agent needs to know it: which vsock port carries it, which guest-side path to serve or create, and the direction.
The host-side path is intentionally absent — libkrun owns the host end, so the guest never needs it.
Fields§
§vsock_port: u32vsock port assigned to this bridge by the host launcher.
guest_path: StringGuest-side socket path: the existing app socket to proxy to (Expose),
or the path to create a listener at (Mount).
direction: SocketDirectionBridge direction.
Trait Implementations§
Source§impl Clone for PublishedSocket
impl Clone for PublishedSocket
Source§fn clone(&self) -> PublishedSocket
fn clone(&self) -> PublishedSocket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublishedSocket
impl Debug for PublishedSocket
impl Eq for PublishedSocket
Source§impl PartialEq for PublishedSocket
impl PartialEq for PublishedSocket
impl StructuralPartialEq for PublishedSocket
Auto Trait Implementations§
impl Freeze for PublishedSocket
impl RefUnwindSafe for PublishedSocket
impl Send for PublishedSocket
impl Sync for PublishedSocket
impl Unpin for PublishedSocket
impl UnsafeUnpin for PublishedSocket
impl UnwindSafe for PublishedSocket
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