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 Ord for JobOutputResult
impl Ord for JobOutputResult
source§fn cmp(&self, other: &JobOutputResult) -> Ordering
fn cmp(&self, other: &JobOutputResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. 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 PartialOrd for JobOutputResult
impl PartialOrd for JobOutputResult
source§fn partial_cmp(&self, other: &JobOutputResult) -> Option<Ordering>
fn partial_cmp(&self, other: &JobOutputResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for JobOutputResult
impl Serialize for JobOutputResult
impl Eq for JobOutputResult
impl StructuralPartialEq for JobOutputResult
Auto Trait Implementations§
impl Freeze for JobOutputResult
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