pub enum InspectFormat {
Json,
// some variants omitted
}Expand description
File format for Inspect data.
Variants§
Json
Implementations§
Source§impl InspectFormat
impl InspectFormat
pub fn from_primitive(prim: u32) -> Option<InspectFormat>
pub fn from_primitive_allow_unknown(prim: u32) -> InspectFormat
pub fn unknown() -> InspectFormat
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for InspectFormat
impl Clone for InspectFormat
Source§fn clone(&self) -> InspectFormat
fn clone(&self) -> InspectFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InspectFormat
Source§impl Debug for InspectFormat
impl Debug for InspectFormat
Source§impl<D> Decode<InspectFormat, D> for InspectFormatwhere
D: ResourceDialect,
impl<D> Decode<InspectFormat, D> for InspectFormatwhere
D: ResourceDialect,
Source§fn new_empty() -> InspectFormat
fn new_empty() -> InspectFormat
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<InspectFormat, D> for InspectFormatwhere
D: ResourceDialect,
impl<D> Encode<InspectFormat, D> for InspectFormatwhere
D: ResourceDialect,
impl Eq for InspectFormat
Source§impl Hash for InspectFormat
impl Hash for InspectFormat
Source§impl Ord for InspectFormat
impl Ord for InspectFormat
Source§fn cmp(&self, other: &InspectFormat) -> Ordering
fn cmp(&self, other: &InspectFormat) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InspectFormat
impl PartialEq for InspectFormat
Source§impl PartialOrd for InspectFormat
impl PartialOrd for InspectFormat
impl StructuralPartialEq for InspectFormat
Source§impl TypeMarker for InspectFormat
impl TypeMarker for InspectFormat
Source§type Owned = InspectFormat
type Owned = InspectFormat
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.Source§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 moreSource§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.Source§impl ValueTypeMarker for InspectFormat
impl ValueTypeMarker for InspectFormat
Source§type Borrowed<'a> = InspectFormat
type Borrowed<'a> = InspectFormat
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<InspectFormat as TypeMarker>::Owned,
) -> <InspectFormat as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<InspectFormat as TypeMarker>::Owned, ) -> <InspectFormat as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.Auto Trait Implementations§
impl Freeze for InspectFormat
impl RefUnwindSafe for InspectFormat
impl Send for InspectFormat
impl Sync for InspectFormat
impl Unpin for InspectFormat
impl UnsafeUnpin for InspectFormat
impl UnwindSafe for InspectFormat
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