Struct fidl_fuchsia_ui_gfx::ReleaseResourceCmd
source · #[repr(C)]pub struct ReleaseResourceCmd {
pub id: u32,
}
Expand description
Releases the client’s reference to the resource; it is then illegal to use the ID in subsequent Commands. Other references to the resource may exist, so releasing the resource does not result in its immediate destruction; it is only destroyed once the last reference is released. For example, the resource may be required to render an in-progress frame, or it may be referred to by another resource). However, the ID will be immediately unregistered, and may be reused to create a new resource.
Fields§
§id: u32
ID of the resource to be dereferenced.
Trait Implementations§
source§impl AsBytes for ReleaseResourceCmdwhere
u32: AsBytes,
HasPadding<ReleaseResourceCmd, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for ReleaseResourceCmdwhere u32: AsBytes, HasPadding<ReleaseResourceCmd, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Autonull for ReleaseResourceCmd
impl Autonull for ReleaseResourceCmd
source§fn naturally_nullable(_context: &Context) -> bool
fn naturally_nullable(_context: &Context) -> bool
Returns true if the type is naturally able to be nullable. Read more
source§impl Clone for ReleaseResourceCmd
impl Clone for ReleaseResourceCmd
source§fn clone(&self) -> ReleaseResourceCmd
fn clone(&self) -> ReleaseResourceCmd
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 ReleaseResourceCmd
impl Debug for ReleaseResourceCmd
source§impl Decodable for ReleaseResourceCmd
impl Decodable for ReleaseResourceCmd
source§fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
Decodes an object of this type from the decoder’s buffers into
self
.
Callers must ensure that offset
is a multiple of
Layout::inline_align
, and that decoder.buf
has room for reading
Layout::inline_size
bytes at offset
. Read moresource§impl Encodable for ReleaseResourceCmd
impl Encodable for ReleaseResourceCmd
source§fn encode(
&mut self,
encoder: &mut Encoder<'_, '_>,
offset: usize,
_recursion_depth: usize
) -> Result<()>
fn encode( &mut self, encoder: &mut Encoder<'_, '_>, offset: usize, _recursion_depth: usize ) -> Result<()>
Encode the object into the buffer. Any handles stored in the object are
swapped for
Handle::INVALID
. Callers must ensure that offset
is a
multiple of Layout::inline_align
, and that encoder.buf
has room for
writing Layout::inline_size
bytes at offset
. Read moresource§impl FromBytes for ReleaseResourceCmdwhere
u32: FromBytes,
impl FromBytes for ReleaseResourceCmdwhere u32: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self
from zeroed bytes.source§impl Hash for ReleaseResourceCmd
impl Hash for ReleaseResourceCmd
source§impl Layout for ReleaseResourceCmd
impl Layout for ReleaseResourceCmd
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 the type’s alignment. Must be a multiple of
inline_align
.source§fn supports_simple_copy() -> bool
fn supports_simple_copy() -> bool
Returns true iff the type can be encoded or decoded via simple copy. Read more
source§impl Ord for ReleaseResourceCmd
impl Ord for ReleaseResourceCmd
source§fn cmp(&self, other: &ReleaseResourceCmd) -> Ordering
fn cmp(&self, other: &ReleaseResourceCmd) -> 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<ReleaseResourceCmd> for ReleaseResourceCmd
impl PartialEq<ReleaseResourceCmd> for ReleaseResourceCmd
source§fn eq(&self, other: &ReleaseResourceCmd) -> bool
fn eq(&self, other: &ReleaseResourceCmd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ReleaseResourceCmd> for ReleaseResourceCmd
impl PartialOrd<ReleaseResourceCmd> for ReleaseResourceCmd
source§fn partial_cmp(&self, other: &ReleaseResourceCmd) -> Option<Ordering>
fn partial_cmp(&self, other: &ReleaseResourceCmd) -> 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 moreimpl Copy for ReleaseResourceCmd
impl Eq for ReleaseResourceCmd
impl Persistable for ReleaseResourceCmd
impl StructuralEq for ReleaseResourceCmd
impl StructuralPartialEq for ReleaseResourceCmd
impl TopLevel for ReleaseResourceCmd
Auto Trait Implementations§
impl RefUnwindSafe for ReleaseResourceCmd
impl Send for ReleaseResourceCmd
impl Sync for ReleaseResourceCmd
impl Unpin for ReleaseResourceCmd
impl UnwindSafe for ReleaseResourceCmd
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutObject for Twhere
T: Layout,
impl<T> LayoutObject for Twhere T: Layout,
§fn inline_align(&self, context: &Context) -> usize
fn inline_align(&self, context: &Context) -> usize
See
Layout::inline_align
.§fn inline_size(&self, context: &Context) -> usize
fn inline_size(&self, context: &Context) -> usize
See
Layout::inline_size
.