Enum maelstrom_base::JobOutputResult
source · pub enum JobOutputResult {
None,
Inline(Box<[u8]>),
Truncated {
first: Box<[u8]>,
truncated: u64,
},
}Expand description
The result for stdout or stderr for a job.
Variants§
None
There was no output.
Inline(Box<[u8]>)
The output is contained in the provided slice.
Truncated
The output was truncated to the provided slice, the size of which is based on the job request. The actual size of the output is also provided, though the remaining bytes will have been thrown away.
Trait Implementations§
source§impl Clone for JobOutputResult
impl Clone for JobOutputResult
source§fn clone(&self) -> JobOutputResult
fn clone(&self) -> JobOutputResult
Returns a copy of the value. Read more
1.0.0 · 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 JobOutputResult
impl Debug for JobOutputResult
source§impl<'de> Deserialize<'de> for JobOutputResult
impl<'de> Deserialize<'de> for JobOutputResult
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 JobOutputResult
impl PartialEq for JobOutputResult
source§fn eq(&self, other: &JobOutputResult) -> bool
fn eq(&self, other: &JobOutputResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for JobOutputResult
impl Serialize for JobOutputResult
impl StructuralPartialEq for JobOutputResult
Auto Trait Implementations§
impl RefUnwindSafe for JobOutputResult
impl Send for JobOutputResult
impl Sync for JobOutputResult
impl Unpin for JobOutputResult
impl UnwindSafe for JobOutputResult
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