Struct bollard::container::AttachContainerOptions
source · pub struct AttachContainerOptions<T>{
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§
source§impl<T> Clone for AttachContainerOptions<T>
impl<T> Clone for AttachContainerOptions<T>
source§fn clone(&self) -> AttachContainerOptions<T>
fn clone(&self) -> AttachContainerOptions<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for AttachContainerOptions<T>
impl<T> Debug for AttachContainerOptions<T>
source§impl<T> Default for AttachContainerOptions<T>
impl<T> Default for AttachContainerOptions<T>
source§fn default() -> AttachContainerOptions<T>
fn default() -> AttachContainerOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for AttachContainerOptions<T>
impl<T> PartialEq for AttachContainerOptions<T>
source§impl<T> Serialize for AttachContainerOptions<T>
impl<T> Serialize for AttachContainerOptions<T>
impl<T> Copy for AttachContainerOptions<T>
impl<T> StructuralPartialEq for AttachContainerOptions<T>
Auto Trait Implementations§
impl<T> Freeze for AttachContainerOptions<T>where
T: Freeze,
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)