pub struct ExecutionOutputRequest {
pub taskid: u64,
pub stream: i32,
pub offset: u64,
pub size: u64,
}Expand description
ExecutionOutputRequest reads the next piece of a released task’s output.
Each stream is read once and in order, in pieces of the size the host asks for. The Ark refuses a size of zero, or one whose answer would not fit a wire message. The task closes for the host once exec_result has answered and both streams are read to their end.
Fields§
§taskid: u64Task id to read the output of
stream: i32Stream to read
offset: u64Bytes of the stream read so far, the only offset the Ark accepts
size: u64Most bytes to return, chosen by the host
Implementations§
Source§impl ExecutionOutputRequest
impl ExecutionOutputRequest
Sourcepub fn stream(&self) -> ExecutionStream
pub fn stream(&self) -> ExecutionStream
Returns the enum value of stream, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stream(&mut self, value: ExecutionStream)
pub fn set_stream(&mut self, value: ExecutionStream)
Sets stream to the provided enum value.
Trait Implementations§
Source§impl Clone for ExecutionOutputRequest
impl Clone for ExecutionOutputRequest
impl Copy for ExecutionOutputRequest
Source§impl Debug for ExecutionOutputRequest
impl Debug for ExecutionOutputRequest
Source§impl Default for ExecutionOutputRequest
impl Default for ExecutionOutputRequest
impl Eq for ExecutionOutputRequest
Source§impl From<ExecutionOutputRequest> for Message
impl From<ExecutionOutputRequest> for Message
Source§fn from(message: ExecutionOutputRequest) -> Self
fn from(message: ExecutionOutputRequest) -> Self
Wraps a concrete payload in its corresponding message variant.
Source§impl Hash for ExecutionOutputRequest
impl Hash for ExecutionOutputRequest
Source§impl Message for ExecutionOutputRequest
impl Message for ExecutionOutputRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ExecutionOutputRequest
impl PartialEq for ExecutionOutputRequest
impl StructuralPartialEq for ExecutionOutputRequest
Auto Trait Implementations§
impl Freeze for ExecutionOutputRequest
impl RefUnwindSafe for ExecutionOutputRequest
impl Send for ExecutionOutputRequest
impl Sync for ExecutionOutputRequest
impl Unpin for ExecutionOutputRequest
impl UnsafeUnpin for ExecutionOutputRequest
impl UnwindSafe for ExecutionOutputRequest
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