pub struct Container { /* private fields */ }Implementations§
Source§impl Container
impl Container
Sourcepub fn exec(&self, executable: impl Into<String>) -> ExecCommand<'_>
pub fn exec(&self, executable: impl Into<String>) -> ExecCommand<'_>
Create an exec command builder for running commands inside this container.
pub fn stop(&mut self)
pub fn remove(&mut self)
pub fn inspect(&self) -> Value
pub fn inspect_format(&self, format: &str) -> String
pub fn read_host_tcp_port(&self, container_port: u16) -> Option<u16>
pub fn commit( &self, reference: &Reference, pause: bool, ) -> Result<(), CommandError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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