pub struct Container {
pub id: String,
pub name: Option<String>,
}
Fields§
§id: String
§name: Option<String>
Implementations§
Source§impl Container
impl Container
pub fn new(id: String, name: Option<String>) -> Self
pub async fn get_by_name(docker: &Docker, name: &str) -> Option<Self>
pub async fn run( &self, docker: &Docker, writer: Option<&mut (dyn Write + Send)>, ) -> Result<()>
pub async fn inspect( &self, docker: &Docker, size: bool, ) -> Result<ContainerInspectResponse>
pub async fn stop(&self, docker: &Docker, time: i64) -> Result<()>
pub async fn remove(&self, docker: &Docker, force: bool) -> Result<()>
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