pub struct SyncManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SyncManagerSynchronousProxy
impl SyncManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SyncManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SyncManagerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn bus_subscribe(
&self,
bus_name: &str,
client_name: &str,
bus: ServerEnd<BusMarker>,
) -> Result<(), Error>
pub fn bus_subscribe( &self, bus_name: &str, client_name: &str, bus: ServerEnd<BusMarker>, ) -> Result<(), Error>
Subscribes to bus ‘busName’ with a given client name. Duplicate client names are disallowed and will cause the request to return unfulfilled.
Sourcepub fn wait_for_barrier_threshold(
&self,
barrier_name: &str,
threshold: u32,
timeout: i64,
___deadline: MonotonicInstant,
) -> Result<bool, Error>
pub fn wait_for_barrier_threshold( &self, barrier_name: &str, threshold: u32, timeout: i64, ___deadline: MonotonicInstant, ) -> Result<bool, Error>
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.
Trait Implementations§
Source§impl Debug for SyncManagerSynchronousProxy
impl Debug for SyncManagerSynchronousProxy
Source§impl SynchronousProxy for SyncManagerSynchronousProxy
impl SynchronousProxy for SyncManagerSynchronousProxy
Source§type Proxy = SyncManagerProxy
type Proxy = SyncManagerProxy
The async proxy for the same protocol.
Source§type Protocol = SyncManagerMarker
type Protocol = SyncManagerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SyncManagerSynchronousProxy
impl RefUnwindSafe for SyncManagerSynchronousProxy
impl Send for SyncManagerSynchronousProxy
impl Sync for SyncManagerSynchronousProxy
impl Unpin for SyncManagerSynchronousProxy
impl UnwindSafe for SyncManagerSynchronousProxy
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