Struct bollard::container::AttachContainerOptions
source · [−]pub struct AttachContainerOptions<T> where
T: Into<String> + Serialize + Default, {
pub stdin: Option<bool>,
pub stdout: Option<bool>,
pub stderr: Option<bool>,
pub stream: Option<bool>,
pub logs: Option<bool>,
pub detach_keys: Option<T>,
}Expand description
Parameters used in the Attach Container API
Examples
use bollard::container::AttachContainerOptions;
AttachContainerOptions::<String>{
stdin: Some(true),
stdout: Some(true),
stderr: Some(true),
stream: Some(true),
logs: Some(true),
detach_keys: Some("ctrl-c".to_string()),
};Fields
stdin: Option<bool>Attach to stdin
stdout: Option<bool>Attach to stdout
stderr: Option<bool>Attach to stderr
stream: Option<bool>Stream attached streams from the time the request was made onwards.
logs: Option<bool>Replay previous logs from the container. This is useful for attaching to a container that has started and you want to output everything since the container started. If stream is also enabled, once all the previous output has been returned, it will seamlessly transition into streaming current output.
detach_keys: Option<T>Override the key sequence for detaching a container.
Format is a single character [a-Z] or ctrl-
Trait Implementations
sourceimpl<T: Clone> Clone for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
impl<T: Clone> Clone for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
sourcefn clone(&self) -> AttachContainerOptions<T>
fn clone(&self) -> AttachContainerOptions<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug> Debug for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
impl<T: Debug> Debug for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
sourceimpl<T: Default> Default for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
impl<T: Default> Default for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
sourcefn default() -> AttachContainerOptions<T>
fn default() -> AttachContainerOptions<T>
Returns the “default value” for a type. Read more
sourceimpl<T: PartialEq> PartialEq<AttachContainerOptions<T>> for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
impl<T: PartialEq> PartialEq<AttachContainerOptions<T>> for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
sourcefn eq(&self, other: &AttachContainerOptions<T>) -> bool
fn eq(&self, other: &AttachContainerOptions<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AttachContainerOptions<T>) -> bool
fn ne(&self, other: &AttachContainerOptions<T>) -> bool
This method tests for !=.
sourceimpl<T> Serialize for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
T: Serialize,
impl<T> Serialize for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
T: Serialize,
impl<T: Copy> Copy for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
impl<T> StructuralPartialEq for AttachContainerOptions<T> where
T: Into<String> + Serialize + Default,
Auto Trait Implementations
impl<T> RefUnwindSafe for AttachContainerOptions<T> where
T: RefUnwindSafe,
impl<T> Send for AttachContainerOptions<T> where
T: Send,
impl<T> Sync for AttachContainerOptions<T> where
T: Sync,
impl<T> Unpin for AttachContainerOptions<T> where
T: Unpin,
impl<T> UnwindSafe for AttachContainerOptions<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more