pub struct SyncFenceRegistryProxy { /* private fields */ }
Implementations§
source§impl SyncFenceRegistryProxy
impl SyncFenceRegistryProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.starnix.device/SyncFenceRegistry.
sourcepub fn take_event_stream(&self) -> SyncFenceRegistryEventStream
pub fn take_event_stream(&self) -> SyncFenceRegistryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn create_sync_fences(
&self,
num_fences: u32
) -> QueryResponseFut<(Vec<SyncFenceKey>, Vec<Event>)>
pub fn create_sync_fences( &self, num_fences: u32 ) -> QueryResponseFut<(Vec<SyncFenceKey>, Vec<Event>)>
Batch create SyncFences. There is one-to-one correspondance between
sync_fence_keys
and events
. Each event is treated as the first
synchronization object that is backing a SyncFence. There may be
other events added later through SYNC_IOC_MERGE ioctl.
Lifetime of SyncFence is defined by how long the client holds SyncFenceKey.
sourcepub fn register_signaled_event(
&self,
fence_key: SyncFenceKey,
event: Event
) -> Result<(), Error>
pub fn register_signaled_event( &self, fence_key: SyncFenceKey, event: Event ) -> Result<(), Error>
Registers an event
for this SyncFenceKey. This event is expected to
be signaled iff all the underlying events associated with this
SyncFence are signaled.
If fence_key
is not found in the registry of created SyncFenceKeys or
dropped, event
is signaled immediately.
Trait Implementations§
source§impl Clone for SyncFenceRegistryProxy
impl Clone for SyncFenceRegistryProxy
source§fn clone(&self) -> SyncFenceRegistryProxy
fn clone(&self) -> SyncFenceRegistryProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncFenceRegistryProxy
impl Debug for SyncFenceRegistryProxy
source§impl Proxy for SyncFenceRegistryProxy
impl Proxy for SyncFenceRegistryProxy
§type Protocol = SyncFenceRegistryMarker
type Protocol = SyncFenceRegistryMarker
Proxy
controls.