pub struct ContainerdRuntimePlugin { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for ContainerdRuntimePlugin
impl Debug for ContainerdRuntimePlugin
Source§impl RuntimePlugin for ContainerdRuntimePlugin
impl RuntimePlugin for ContainerdRuntimePlugin
Source§fn on_plugin_load(&self)
fn on_plugin_load(&self)
A callback fired immediately after the plugin is loaded. Usually used for initialization.
Source§fn on_plugin_unload(&self)
fn on_plugin_unload(&self)
A callback fired immediately before the plugin is unloaded. Use this if you need to do any cleanup.
fn get_features(&self) -> Vec<RuntimeFeatures>
fn get_version(&self) -> i32
fn create_workload( &self, id: String, config: &RuntimeConfig, options: &Option<SandboxConfig>, ) -> Result<String, RuntimeError>
fn start_workload(&mut self, id: String) -> Option<RuntimeError>
fn stop_workload(&self, id: String, timeout: i32) -> Option<RuntimeError>
fn remove_workload(&self, id: String) -> Option<RuntimeError>
fn status_workload(&self, id: String) -> Result<WorkloadStatus, RuntimeError>
fn update_workload_resources( &self, id: String, rez: WorkloadResources, ) -> Option<RuntimeError>
fn exec_sync( &self, id: String, cmd: &[String], timeout: i32, ) -> (&[u8], &[u8], Option<RuntimeError>)
Auto Trait Implementations§
impl !Freeze for ContainerdRuntimePlugin
impl !RefUnwindSafe for ContainerdRuntimePlugin
impl !UnwindSafe for ContainerdRuntimePlugin
impl Send for ContainerdRuntimePlugin
impl Sync for ContainerdRuntimePlugin
impl Unpin for ContainerdRuntimePlugin
impl UnsafeUnpin for ContainerdRuntimePlugin
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
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>
Converts
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>
Converts
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