pub struct Native { /* private fields */ }Implementations§
Source§impl Native
impl Native
pub fn new(root: impl Into<PathBuf>, youki: impl Into<PathBuf>) -> Result<Self>
pub fn new_with( root: impl Into<PathBuf>, youki: impl Into<PathBuf>, net_cfg: Option<NetConfig>, ) -> Result<Self>
pub fn new_with_profile( root: impl Into<PathBuf>, youki: impl Into<PathBuf>, net_cfg: Option<NetConfig>, profile: Option<PathBuf>, ) -> Result<Self>
pub async fn shutdown_all(&self)
Trait Implementations§
Source§impl Runtime for Native
impl Runtime for Native
async fn gc_images(&self, low: u64, high: u64) -> Result<usize>
fn name(&self) -> &str
async fn list(&self) -> Result<Vec<ContainerInfo>>
async fn inspect(&self, info: &mut ContainerInfo) -> Result<()>
async fn logs( &self, info: &ContainerInfo, opts: &LogOpts, ) -> Result<Receiver<Bytes>>
async fn pull_image(&self, image: &str) -> Result<()>
async fn create_container(&self, spec: &ContainerSpec) -> Result<String>
async fn start(&self, id: &str) -> Result<()>
async fn stop(&self, id: &str, timeout_secs: u64) -> Result<()>
async fn remove(&self, id: &str, force: bool) -> Result<()>
async fn ensure_network(&self, _name: &str) -> Result<()>
async fn remove_network(&self, _name: &str) -> Result<()>
async fn connect_network( &self, container: &str, _network: &str, aliases: &[String], ) -> Result<()>
async fn disconnect_network( &self, container: &str, _network: &str, ) -> Result<()>
async fn remove_volume(&self, name: &str) -> Result<()>
async fn exec_run(&self, id: &str, cmd: &[String]) -> Result<(i64, Vec<u8>)>
async fn exec_stream(&self, id: &str, opts: &ExecOpts) -> Result<ExecHandle>
async fn exec_resize( &self, exec_id: &str, _width: u32, _height: u32, ) -> Result<()>
async fn shutdown(&self)
async fn exec_exit_code(&self, exec_id: &str) -> Result<i64>
Auto Trait Implementations§
impl Forget for Native
impl Freeze for Native
impl Move for Native
impl RefUnwindSafe for Nativewhere
Atomic<usize>: RefUnwindSafe,
Mutex<Vec<(String, u64, i32)>>: RefUnwindSafe,
Mutex<HashMap<String, Entry>>: RefUnwindSafe,
Mutex<HashMap<String, ExecState>>: RefUnwindSafe,
Mutex<HashMap<String, Weak<Mutex<()>>>>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
Mutex<()>: RefUnwindSafe,
Mutex<BTreeMap<String, Vec<Hold>>>: RefUnwindSafe,
Mutex<Vec<Subnet>>: RefUnwindSafe,
I32NotAllOnes: RefUnwindSafe,
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
impl UnwindSafe for Nativewhere
Arc<Inner>: 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