Struct kube::api::AttachedProcess[][src]

pub struct AttachedProcess { /* fields omitted */ }
This is supported on crate feature ws only.

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

Resolves when the connection terminates with an optional Status. Provides access to stdin, stdout, and stderr if attached.

Implementations

impl AttachedProcess[src]

pub fn stdin(&mut self) -> Option<impl AsyncWrite + Unpin>[src]

Async writer to stdin.

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

Only available if AttachParams had stdin.

pub fn stdout(&mut self) -> Option<impl AsyncRead + Unpin>[src]

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.

pub fn stderr(&mut self) -> Option<impl AsyncRead + Unpin>[src]

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.

Trait Implementations

impl Future for AttachedProcess[src]

type Output = Option<Status>

The type of value produced on completion.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,