pub struct HostExecRequest { /* private fields */ }Expand description
One bounded allowlisted host execution request.
Implementations§
Source§impl HostExecRequest
impl HostExecRequest
Sourcepub fn new(
operation_id: OperationId,
operation: OperationName,
command: HostExecCommand,
args: Vec<String>,
working_dir: Option<PathBuf>,
deadline: Timestamp,
) -> InfraResult<Self>
pub fn new( operation_id: OperationId, operation: OperationName, command: HostExecCommand, args: Vec<String>, working_dir: Option<PathBuf>, deadline: Timestamp, ) -> InfraResult<Self>
Creates a validated request with at most 256 direct arguments.
Sourcepub fn operation_id(&self) -> &OperationId
pub fn operation_id(&self) -> &OperationId
Returns the operation identity.
Sourcepub const fn command(&self) -> HostExecCommand
pub const fn command(&self) -> HostExecCommand
Returns the allowlisted command.
Sourcepub fn working_dir(&self) -> Option<&Path>
pub fn working_dir(&self) -> Option<&Path>
Returns the optional descriptor-bound 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 HostExecRequest
impl Clone for HostExecRequest
Source§fn clone(&self) -> HostExecRequest
fn clone(&self) -> HostExecRequest
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 HostExecRequest
impl Debug for HostExecRequest
Source§impl<'de> Deserialize<'de> for HostExecRequest
impl<'de> Deserialize<'de> for HostExecRequest
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 HostExecRequest
impl PartialEq for HostExecRequest
Source§fn eq(&self, other: &HostExecRequest) -> bool
fn eq(&self, other: &HostExecRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostExecRequest
impl Serialize for HostExecRequest
impl Eq for HostExecRequest
impl StructuralPartialEq for HostExecRequest
Auto Trait Implementations§
impl Freeze for HostExecRequest
impl RefUnwindSafe for HostExecRequest
impl Send for HostExecRequest
impl Sync for HostExecRequest
impl Unpin for HostExecRequest
impl UnsafeUnpin for HostExecRequest
impl UnwindSafe for HostExecRequest
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.