pub struct ExecutionCapabilities {
pub digest_function: i32,
pub exec_enabled: bool,
pub execution_priority_capabilities: Option<PriorityCapabilities>,
pub supported_node_properties: Vec<String>,
pub digest_functions: Vec<i32>,
}
Expand description
Capabilities of the remote execution system.
Fields§
§digest_function: i32
Legacy field for indicating which digest function is supported by the remote execution system. It MUST be set to a value other than UNKNOWN. Implementations should consider the repeated digest_functions field first, falling back to this singular field if digest_functions is unset.
exec_enabled: bool
Whether remote execution is enabled for the particular server/instance.
execution_priority_capabilities: Option<PriorityCapabilities>
Supported execution priority range.
supported_node_properties: Vec<String>
Supported node properties.
digest_functions: Vec<i32>
All the digest functions supported by the remote execution system. If this field is set, it MUST also contain digest_function.
Even if the remote execution system announces support for multiple digest functions, individual execution requests may only reference CAS objects using a single digest function. For example, it is not permitted to execute actions having both MD5 and SHA-256 hashed files in their input root.
The CAS objects referenced by action results generated by the remote execution system MUST use the same digest function as the one used to construct the action.
Implementations§
Source§impl ExecutionCapabilities
impl ExecutionCapabilities
Sourcepub fn digest_function(&self) -> Value
pub fn digest_function(&self) -> Value
Returns the enum value of digest_function
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_digest_function(&mut self, value: Value)
pub fn set_digest_function(&mut self, value: Value)
Sets digest_function
to the provided enum value.
Sourcepub fn digest_functions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Value>>
pub fn digest_functions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Value>>
Returns an iterator which yields the valid enum values contained in digest_functions
.
Sourcepub fn push_digest_functions(&mut self, value: Value)
pub fn push_digest_functions(&mut self, value: Value)
Appends the provided enum value to digest_functions
.
Trait Implementations§
Source§impl Clone for ExecutionCapabilities
impl Clone for ExecutionCapabilities
Source§fn clone(&self) -> ExecutionCapabilities
fn clone(&self) -> ExecutionCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExecutionCapabilities
impl Debug for ExecutionCapabilities
Source§impl Default for ExecutionCapabilities
impl Default for ExecutionCapabilities
Source§impl Message for ExecutionCapabilities
impl Message for ExecutionCapabilities
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for ExecutionCapabilities
impl PartialEq for ExecutionCapabilities
impl StructuralPartialEq for ExecutionCapabilities
Auto Trait Implementations§
impl Freeze for ExecutionCapabilities
impl RefUnwindSafe for ExecutionCapabilities
impl Send for ExecutionCapabilities
impl Sync for ExecutionCapabilities
impl Unpin for ExecutionCapabilities
impl UnwindSafe for ExecutionCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request