pub struct TopologyControlSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TopologyControlSynchronousProxy
impl TopologyControlSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TopologyControlEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TopologyControlEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn create( &self, elements: &[Element], ___deadline: MonotonicInstant, ) -> Result<TopologyControlCreateResult, Error>
pub fn acquire_lease( &self, element_name: &str, level: u8, ___deadline: MonotonicInstant, ) -> Result<TopologyControlAcquireLeaseResult, Error>
pub fn drop_lease( &self, element_name: &str, ___deadline: MonotonicInstant, ) -> Result<TopologyControlDropLeaseResult, Error>
Sourcepub fn open_status_channel(
&self,
element_name: &str,
status_channel: ServerEnd<StatusMarker>,
___deadline: MonotonicInstant,
) -> Result<TopologyControlOpenStatusChannelResult, Error>
pub fn open_status_channel( &self, element_name: &str, status_channel: ServerEnd<StatusMarker>, ___deadline: MonotonicInstant, ) -> Result<TopologyControlOpenStatusChannelResult, Error>
Register a new Status channel on which Power Broker will send read-only updates of the element’s current power level.
Trait Implementations§
Source§impl SynchronousProxy for TopologyControlSynchronousProxy
impl SynchronousProxy for TopologyControlSynchronousProxy
Source§type Proxy = TopologyControlProxy
type Proxy = TopologyControlProxy
The async proxy for the same protocol.
Source§type Protocol = TopologyControlMarker
type Protocol = TopologyControlMarker
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 TopologyControlSynchronousProxy
impl RefUnwindSafe for TopologyControlSynchronousProxy
impl Send for TopologyControlSynchronousProxy
impl Sync for TopologyControlSynchronousProxy
impl Unpin for TopologyControlSynchronousProxy
impl UnwindSafe for TopologyControlSynchronousProxy
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