pub struct ElementControlSynchronousProxy { /* private fields */ }
Implementations§
source§impl ElementControlSynchronousProxy
impl ElementControlSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ElementControlEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ElementControlEvent, 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 open_status_channel(
&self,
status_channel: ServerEnd<StatusMarker>
) -> Result<(), Error>
pub fn open_status_channel( &self, status_channel: ServerEnd<StatusMarker> ) -> Result<(), Error>
Register a new Status channel on which Power Broker will send read-only updates of the element’s current power level. This method is intended to allow element owners to give read-only access to the element’s current power level to clients by opening and transferring this channel.
sourcepub fn add_dependency(
&self,
dependency_type: DependencyType,
dependent_level: u8,
requires_token: Event,
requires_level: u8,
___deadline: Time
) -> Result<ElementControlAddDependencyResult, Error>
pub fn add_dependency( &self, dependency_type: DependencyType, dependent_level: u8, requires_token: Event, requires_level: u8, ___deadline: Time ) -> Result<ElementControlAddDependencyResult, Error>
Adds an active or passive dependency of this element upon another element.
sourcepub fn remove_dependency(
&self,
dependency_type: DependencyType,
dependent_level: u8,
requires_token: Event,
requires_level: u8,
___deadline: Time
) -> Result<ElementControlRemoveDependencyResult, Error>
pub fn remove_dependency( &self, dependency_type: DependencyType, dependent_level: u8, requires_token: Event, requires_level: u8, ___deadline: Time ) -> Result<ElementControlRemoveDependencyResult, Error>
Removes an active or passive dependency of this element upon another element.
sourcepub fn register_dependency_token(
&self,
token: Event,
dependency_type: DependencyType,
___deadline: Time
) -> Result<ElementControlRegisterDependencyTokenResult, Error>
pub fn register_dependency_token( &self, token: Event, dependency_type: DependencyType, ___deadline: Time ) -> Result<ElementControlRegisterDependencyTokenResult, Error>
Register a token which will permit the bearer to add either an active or passive dependency upon this element, depending on the dependency_type specified.
sourcepub fn unregister_dependency_token(
&self,
token: Event,
___deadline: Time
) -> Result<ElementControlUnregisterDependencyTokenResult, Error>
pub fn unregister_dependency_token( &self, token: Event, ___deadline: Time ) -> Result<ElementControlUnregisterDependencyTokenResult, Error>
Unregister a token previously registered via RegisterDependencyToken.
Trait Implementations§
source§impl SynchronousProxy for ElementControlSynchronousProxy
impl SynchronousProxy for ElementControlSynchronousProxy
§type Proxy = ElementControlProxy
type Proxy = ElementControlProxy
§type Protocol = ElementControlMarker
type Protocol = ElementControlMarker
Proxy
controls.