pub struct DockerClient { /* private fields */ }Implementations§
Source§impl DockerClient
impl DockerClient
pub fn new(socket_path: String) -> Self
pub async fn list_containers( &self, all: bool, ) -> Result<Vec<Container>, Box<dyn Error>>
pub async fn get_running_containers_by_image_substring( &self, image_substring: &str, ) -> Result<Vec<Container>, Box<dyn Error>>
pub async fn remove_container( &self, container_id: &str, ) -> Result<(), Box<dyn Error>>
pub async fn stop_container( &self, container_id: &str, ) -> Result<(), Box<dyn Error>>
pub async fn start_container( &self, container_id: &str, ) -> Result<(), Box<dyn Error>>
pub async fn get_running_containers_by_name( &self, name: &str, ) -> Result<Vec<Container>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for DockerClient
impl RefUnwindSafe for DockerClient
impl Send for DockerClient
impl Sync for DockerClient
impl Unpin for DockerClient
impl UnsafeUnpin for DockerClient
impl UnwindSafe for DockerClient
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