pub struct DelegatedRxLease {
pub hold_until_frame: Option<u64>,
pub handle: Option<DelegatedRxLeaseHandle>,
/* private fields */
}
Expand description
An aqcuired lease that is propagated up to applications.
Fields§
§hold_until_frame: Option<u64>
The frame after which the lease in handle
can be released.
Agents observing leases must keep track of received frames with an
increasing counter to be able to properly relinquish leases after the
frame hold_until_frame
is fully processed.
This value can be interpreted as either the 1-based index of a given frame or as the total number of exchanged frames so far, which are mathematically equivalent.
This mechanism allows for wake lease handles from received frames to be passed up and keep the system from suspension until the frame is fully processed.
Required.
handle: Option<DelegatedRxLeaseHandle>
A handle representing the held lease.
Required.
Trait Implementations§
Source§impl Debug for DelegatedRxLease
impl Debug for DelegatedRxLease
Source§impl Decode<DelegatedRxLease, DefaultFuchsiaResourceDialect> for DelegatedRxLease
impl Decode<DelegatedRxLease, DefaultFuchsiaResourceDialect> for DelegatedRxLease
Source§impl Default for DelegatedRxLease
impl Default for DelegatedRxLease
Source§fn default() -> DelegatedRxLease
fn default() -> DelegatedRxLease
Returns the “default value” for a type. Read more
Source§impl Encode<DelegatedRxLease, DefaultFuchsiaResourceDialect> for &mut DelegatedRxLease
impl Encode<DelegatedRxLease, DefaultFuchsiaResourceDialect> for &mut DelegatedRxLease
Source§impl PartialEq for DelegatedRxLease
impl PartialEq for DelegatedRxLease
Source§impl ResourceTypeMarker for DelegatedRxLease
impl ResourceTypeMarker for DelegatedRxLease
Source§type Borrowed<'a> = &'a mut DelegatedRxLease
type Borrowed<'a> = &'a mut DelegatedRxLease
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 DelegatedRxLease
impl TypeMarker for DelegatedRxLease
Source§type Owned = DelegatedRxLease
type Owned = DelegatedRxLease
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 DelegatedRxLease
impl StructuralPartialEq for DelegatedRxLease
Auto Trait Implementations§
impl Freeze for DelegatedRxLease
impl RefUnwindSafe for DelegatedRxLease
impl Send for DelegatedRxLease
impl Sync for DelegatedRxLease
impl Unpin for DelegatedRxLease
impl UnwindSafe for DelegatedRxLease
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