pub enum Artifact {
Stdout(Socket),
Stderr(Socket),
Log(Syslog),
Custom(CustomArtifact),
DebugData(ClientEnd<DebugDataIteratorMarker>),
// some variants omitted
}
Expand description
Describes one or more artifacts.
Variants§
Stdout(Socket)
The artifact is the ‘stdout’ stream of the suite or test case. The artifact is delivered via a socket, the consumer end of which is provided here.
Stderr(Socket)
The artifact is the ‘stderr’ stream of the suite or test case. The artifact is delivered via a socket, the consumer end of which is provided here.
Log(Syslog)
The artifact is the syslog of the suite or test case. The artifact is delivered using a batch iterator or socket.
Custom(CustomArtifact)
The artifacts are one or more files in a directory and may be read using fuchsia.io
.
DebugData(ClientEnd<DebugDataIteratorMarker>)
The artifacts are debug data delivered using a DebugDataIterator
channel.
Implementations§
Trait Implementations§
Source§impl Decode<Artifact, DefaultFuchsiaResourceDialect> for Artifact
impl Decode<Artifact, DefaultFuchsiaResourceDialect> for Artifact
Source§impl ResourceTypeMarker for Artifact
impl ResourceTypeMarker for Artifact
Source§type Borrowed<'a> = &'a mut Artifact
type Borrowed<'a> = &'a mut Artifact
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for Artifact
impl TypeMarker for Artifact
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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