pub struct AttachedProcess { /* private fields */ }
Available on crate feature client only.
Expand description

Represents an attached process in a container for attach and exec.

Provides access to stdin, stdout, and stderr if attached.

Use AttachedProcess::join to wait for the process to terminate.

Implementations

Async writer to stdin.

let mut stdin_writer = attached.stdin().unwrap();
stdin_writer.write(b"foo\n").await?;

Only available if AttachParams had stdin.

Async reader for stdout outputs.

let mut stdout_reader = attached.stdout().unwrap();
let next_stdout = stdout_reader.read().await?;

Only available if AttachParams had stdout.

Async reader for stderr outputs.

let mut stderr_reader = attached.stderr().unwrap();
let next_stderr = stderr_reader.read().await?;

Only available if AttachParams had stderr.

Abort the background task, causing remote command to fail.

Waits for the remote command task to complete.

Take a future that resolves with any status object or when the sender is dropped.

Returns None if called more than once.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more