Struct googapis::google::devtools::remoteworkers::v1test2::Device [−][src]
Expand description
Any device, including computers, phones, accelerators (e.g. GPUs), etc. All names must be unique.
Fields
handle: String
The handle can be thought of as the “name” of the device, and must be unique within a Worker.
In the Status context, the handle should be some human-understandable name, perhaps corresponding to a label physically written on the device to make it easy to locate. In the Request context, the name should be the logical name expected by the task. The bot is responsible for mapping the logical name expected by the task to a machine-readable name that the task can actually use, such as a USB address. The method by which this mapping is communicated to the task is not covered in this API.
properties: Vec<Property>
Properties of this device that don’t change based on the tasks that are running on it, e.g. OS, CPU architecture, etc.
Keys may be repeated, and have the following interpretation:
-
Status context: the device can support any the listed values. For example, an “ISA” property might include “x86”, “x86-64” and “sse4”.
-
Request context: the device must support all of the listed values.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more