#[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 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<D: ResourceDialect> Decode<ReleaseResourceCmd, D> for ReleaseResourceCmd
impl<D: ResourceDialect> Decode<ReleaseResourceCmd, D> for ReleaseResourceCmd
Source§impl<D: ResourceDialect> Encode<ReleaseResourceCmd, D> for &ReleaseResourceCmd
impl<D: ResourceDialect> Encode<ReleaseResourceCmd, D> for &ReleaseResourceCmd
Source§impl<D: ResourceDialect, T0: Encode<u32, D>> Encode<ReleaseResourceCmd, D> for (T0,)
impl<D: ResourceDialect, T0: Encode<u32, D>> Encode<ReleaseResourceCmd, D> for (T0,)
Source§impl Hash for ReleaseResourceCmd
impl Hash for ReleaseResourceCmd
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 for ReleaseResourceCmd
impl PartialEq for ReleaseResourceCmd
Source§impl PartialOrd for ReleaseResourceCmd
impl PartialOrd for ReleaseResourceCmd
Source§impl TypeMarker for ReleaseResourceCmd
impl TypeMarker for ReleaseResourceCmd
Source§type Owned = ReleaseResourceCmd
type Owned = ReleaseResourceCmd
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 ReleaseResourceCmd
impl ValueTypeMarker for ReleaseResourceCmd
Source§type Borrowed<'a> = &'a ReleaseResourceCmd
type Borrowed<'a> = &'a ReleaseResourceCmd
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ReleaseResourceCmd
impl Eq for ReleaseResourceCmd
impl Persistable for ReleaseResourceCmd
impl StructuralPartialEq for ReleaseResourceCmd
Auto Trait Implementations§
impl Freeze for ReleaseResourceCmd
impl RefUnwindSafe for ReleaseResourceCmd
impl Send for ReleaseResourceCmd
impl Sync for ReleaseResourceCmd
impl Unpin for ReleaseResourceCmd
impl UnwindSafe for ReleaseResourceCmd
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)