pub struct ContainerExecRequest { /* private fields */ }Expand description
One non-interactive bounded Docker exec request.
Implementations§
Source§impl ContainerExecRequest
impl ContainerExecRequest
Sourcepub fn new(
operation_id: OperationId,
operation: OperationName,
container: impl Into<String>,
command: Vec<String>,
user: Option<String>,
working_dir: Option<PathBuf>,
deadline: Timestamp,
) -> InfraResult<Self>
pub fn new( operation_id: OperationId, operation: OperationName, container: impl Into<String>, command: Vec<String>, user: Option<String>, working_dir: Option<PathBuf>, deadline: Timestamp, ) -> InfraResult<Self>
Creates a one-shot non-TTY exec request.
Sourcepub fn operation_id(&self) -> &OperationId
pub fn operation_id(&self) -> &OperationId
Returns the operation identity.
Sourcepub fn working_dir(&self) -> Option<&Path>
pub fn working_dir(&self) -> Option<&Path>
Returns the optional absolute container working directory.
Sourcepub const fn max_stdout_bytes(&self) -> usize
pub const fn max_stdout_bytes(&self) -> usize
Returns the stdout byte ceiling.
Sourcepub const fn max_stderr_bytes(&self) -> usize
pub const fn max_stderr_bytes(&self) -> usize
Returns the stderr byte ceiling.
Trait Implementations§
Source§impl Clone for ContainerExecRequest
impl Clone for ContainerExecRequest
Source§fn clone(&self) -> ContainerExecRequest
fn clone(&self) -> ContainerExecRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerExecRequest
impl Debug for ContainerExecRequest
Source§impl<'de> Deserialize<'de> for ContainerExecRequest
impl<'de> Deserialize<'de> for ContainerExecRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContainerExecRequest
impl PartialEq for ContainerExecRequest
Source§fn eq(&self, other: &ContainerExecRequest) -> bool
fn eq(&self, other: &ContainerExecRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerExecRequest
impl Serialize for ContainerExecRequest
impl Eq for ContainerExecRequest
impl StructuralPartialEq for ContainerExecRequest
Auto Trait Implementations§
impl Freeze for ContainerExecRequest
impl RefUnwindSafe for ContainerExecRequest
impl Send for ContainerExecRequest
impl Sync for ContainerExecRequest
impl Unpin for ContainerExecRequest
impl UnsafeUnpin for ContainerExecRequest
impl UnwindSafe for ContainerExecRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.