pub enum SyncManagerRequest {
BusSubscribe {
bus_name: String,
client_name: String,
bus: ServerEnd<BusMarker>,
control_handle: SyncManagerControlHandle,
},
WaitForBarrierThreshold {
barrier_name: String,
threshold: u32,
timeout: i64,
responder: SyncManagerWaitForBarrierThresholdResponder,
},
}
Expand description
The SyncManager is the entry point to attach a client to a bus or use other synchronization primitives. The client’s ‘ticket’ to remain on the bus is the channel obtained through the ‘BusSubscribe’ call.
Variants§
BusSubscribe
Subscribes to bus ‘busName’ with a given client name. Duplicate client names are disallowed and will cause the request to return unfulfilled.
Fields
§
control_handle: SyncManagerControlHandle
WaitForBarrierThreshold
Waits on a named counter barrier with name barrierName
.
Functon will return true if the number of waits pending on the barrier matches or exceeds
threshold
before timeout
(nsec) expires.
Use timeout
<= 0 for indefinite wait.
Implementations§
Source§impl SyncManagerRequest
impl SyncManagerRequest
pub fn into_bus_subscribe( self, ) -> Option<(String, String, ServerEnd<BusMarker>, SyncManagerControlHandle)>
pub fn into_wait_for_barrier_threshold( self, ) -> Option<(String, u32, i64, SyncManagerWaitForBarrierThresholdResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncManagerRequest
impl !RefUnwindSafe for SyncManagerRequest
impl Send for SyncManagerRequest
impl Sync for SyncManagerRequest
impl Unpin for SyncManagerRequest
impl !UnwindSafe for SyncManagerRequest
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