Struct docker_api::api::exec::Exec
source · pub struct Exec { /* private fields */ }
Expand description
Interface for docker exec instance
Implementations§
source§impl Exec
impl Exec
sourcepub fn get(docker: Docker, id: impl Into<Id>) -> Exec
pub fn get(docker: Docker, id: impl Into<Id>) -> Exec
Get a reference to a set of operations available to an already created exec instance.
It’s in callers responsibility to ensure that exec instance with specified id actually exists. Use Exec::create to ensure that the exec instance is created beforehand.
sourcepub async fn inspect(&self) -> Result<ExecInspect200Response>
pub async fn inspect(&self) -> Result<ExecInspect200Response>
Inspect this Exec instance
sourcepub async fn create(
docker: Docker,
container_id: impl AsRef<str>,
opts: &ExecCreateOpts
) -> Result<Exec>
pub async fn create( docker: Docker, container_id: impl AsRef<str>, opts: &ExecCreateOpts ) -> Result<Exec>
Creates a new exec instance that will be executed in a container with id == container_id.
sourcepub async fn start(&self, opts: &ExecStartOpts) -> Result<Multiplexer>
pub async fn start(&self, opts: &ExecStartOpts) -> Result<Multiplexer>
Starts this exec instance returning a multiplexed tty stream.
sourcepub async fn resize(&self, opts: &ExecResizeOpts) -> Result<()>
pub async fn resize(&self, opts: &ExecResizeOpts) -> Result<()>
Resize the TTY session used by an exec instance. This only works if the exec was created
with tty
enabled.
Auto Trait Implementations§
impl !RefUnwindSafe for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl !UnwindSafe for Exec
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