pub struct WanixInjection {
pub annotations: HashMap<String, String>,
pub server: Injected9pServer,
pub export_socket_path: PathBuf,
}Expand description
The product of inject_9p_socket: the annotations to place on the
workload’s sandbox config, plus the running 9P server handle.
Fields§
§annotations: HashMap<String, String>Annotations to merge into the sandbox’s config. Shaped as the backend’s
start receives them (HashMap<String, String>); use
WanixInjection::as_key_values to fold them into a
PodSandboxConfig’s
annotations: Vec<KeyValue> for the pool path.
server: Injected9pServerThe live Direction-A 9P server (host exports its namespace to the guest). Keep it alive for the workload’s lifetime; drop it to tear the export down.
export_socket_path: PathBufHost-side path where the guest’s Direction-B export socket will appear
once the guest boots and listens (inside the shared export dir bound into
the container). Pass this to import_guest_namespace after the
sandbox is started to import the guest’s live namespace.
Implementations§
Source§impl WanixInjection
impl WanixInjection
Sourcepub fn as_key_values(&self) -> Vec<KeyValue>
pub fn as_key_values(&self) -> Vec<KeyValue>
The injection annotations as Vec<KeyValue> for merging into a
PodSandboxConfig.
Sourcepub fn export_socket_path(&self) -> &Path
pub fn export_socket_path(&self) -> &Path
Host-side path of the guest’s Direction-B export socket (see
WanixInjection::export_socket_path).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WanixInjection
impl RefUnwindSafe for WanixInjection
impl Send for WanixInjection
impl Sync for WanixInjection
impl Unpin for WanixInjection
impl UnsafeUnpin for WanixInjection
impl UnwindSafe for WanixInjection
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more