pub enum FormattedContent {
Json(Buffer),
Text(Buffer),
Cbor(Vmo),
// some variants omitted
}
Expand description
A fidl union containing a complete hierarchy of structured diagnostics data, such that the content can be parsed into a file by itself.
Variants§
Json(Buffer)
A diagnostics schema encoded as json. The VMO will contain up to 1mb of diagnostics data.
Text(Buffer)
A diagnostics schema encoded as text. The VMO will contain up to 1mb of diagnostics data.
Cbor(Vmo)
A diagnostics schema encoded as cbor. The VMO will contain up to 1mb of diagnostics data. The size will be in ZX_PROP_VMO_CONTENT_SIZE.
Implementations§
Source§impl FormattedContent
impl FormattedContent
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Debug for FormattedContent
impl Debug for FormattedContent
Source§impl Decode<FormattedContent, DefaultFuchsiaResourceDialect> for FormattedContent
impl Decode<FormattedContent, DefaultFuchsiaResourceDialect> for FormattedContent
Source§impl Encode<FormattedContent, DefaultFuchsiaResourceDialect> for &mut FormattedContent
impl Encode<FormattedContent, DefaultFuchsiaResourceDialect> for &mut FormattedContent
Source§impl PartialEq for FormattedContent
impl PartialEq for FormattedContent
Source§impl ResourceTypeMarker for FormattedContent
impl ResourceTypeMarker for FormattedContent
Source§type Borrowed<'a> = &'a mut FormattedContent
type Borrowed<'a> = &'a mut FormattedContent
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 FormattedContent
impl TypeMarker for FormattedContent
Source§type Owned = FormattedContent
type Owned = FormattedContent
The owned Rust type which this FIDL type decodes into.
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 FormattedContent
Auto Trait Implementations§
impl Freeze for FormattedContent
impl RefUnwindSafe for FormattedContent
impl Send for FormattedContent
impl Sync for FormattedContent
impl Unpin for FormattedContent
impl UnwindSafe for FormattedContent
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