pub struct FrameInfo2 {
pub buffer_index: Option<u32>,
pub frame_counter: Option<u64>,
pub timestamp: Option<i64>,
pub capture_timestamp: Option<i64>,
pub release_fence: Option<EventPair>,
/* private fields */
}
Expand description
Metadata concerning a given frame.
Fields§
§buffer_index: Option<u32>
Identifies the buffer used for this frame as an index into the most recently negotiated buffer collection.
frame_counter: Option<u64>
A monotonically increasing counter indicating the number of frames written to this stream’s most recently negotiated buffer collection. Clients can use this to detect dropped frames or generate nominal timestamps using the associated stream’s framerate.
timestamp: Option<i64>
The value of the system monotonic clock, measured at the time the hardware completed populating the buffer.
capture_timestamp: Option<i64>
The value of the system monotonic clock, measured at the time the hardware completed populating the original buffer used to derive the contents of this buffer.
release_fence: Option<EventPair>
The client must close this when it has completed reading from the buffer.
Trait Implementations§
Source§impl Debug for FrameInfo2
impl Debug for FrameInfo2
Source§impl Decode<FrameInfo2, DefaultFuchsiaResourceDialect> for FrameInfo2
impl Decode<FrameInfo2, DefaultFuchsiaResourceDialect> for FrameInfo2
Source§impl Default for FrameInfo2
impl Default for FrameInfo2
Source§fn default() -> FrameInfo2
fn default() -> FrameInfo2
Returns the “default value” for a type. Read more
Source§impl Encode<FrameInfo2, DefaultFuchsiaResourceDialect> for &mut FrameInfo2
impl Encode<FrameInfo2, DefaultFuchsiaResourceDialect> for &mut FrameInfo2
Source§impl PartialEq for FrameInfo2
impl PartialEq for FrameInfo2
Source§impl ResourceTypeMarker for FrameInfo2
impl ResourceTypeMarker for FrameInfo2
Source§type Borrowed<'a> = &'a mut FrameInfo2
type Borrowed<'a> = &'a mut FrameInfo2
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 FrameInfo2
impl TypeMarker for FrameInfo2
Source§type Owned = FrameInfo2
type Owned = FrameInfo2
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 FrameInfo2
impl StructuralPartialEq for FrameInfo2
Auto Trait Implementations§
impl Freeze for FrameInfo2
impl RefUnwindSafe for FrameInfo2
impl Send for FrameInfo2
impl Sync for FrameInfo2
impl Unpin for FrameInfo2
impl UnwindSafe for FrameInfo2
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