pub struct PeerManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PeerManagerSynchronousProxy
impl PeerManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PeerManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PeerManagerEvent, 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 get_browse_controller_for_target(
&self,
peer_id: &PeerId,
client: ServerEnd<BrowseControllerMarker>,
___deadline: MonotonicInstant,
) -> Result<PeerManagerGetBrowseControllerForTargetResult, Error>
pub fn get_browse_controller_for_target( &self, peer_id: &PeerId, client: ServerEnd<BrowseControllerMarker>, ___deadline: MonotonicInstant, ) -> Result<PeerManagerGetBrowseControllerForTargetResult, Error>
Returns a browse controller client to a remote target (TG) service at
the peer specified by peer_id
.
Sourcepub fn get_controller_for_target(
&self,
peer_id: &PeerId,
client: ServerEnd<ControllerMarker>,
___deadline: MonotonicInstant,
) -> Result<PeerManagerGetControllerForTargetResult, Error>
pub fn get_controller_for_target( &self, peer_id: &PeerId, client: ServerEnd<ControllerMarker>, ___deadline: MonotonicInstant, ) -> Result<PeerManagerGetControllerForTargetResult, Error>
Returns a controller client to a remote target (TG) service at the peer specified by
peer_id
.
Sourcepub fn set_absolute_volume_handler(
&self,
handler: ClientEnd<AbsoluteVolumeHandlerMarker>,
___deadline: MonotonicInstant,
) -> Result<PeerManagerSetAbsoluteVolumeHandlerResult, Error>
pub fn set_absolute_volume_handler( &self, handler: ClientEnd<AbsoluteVolumeHandlerMarker>, ___deadline: MonotonicInstant, ) -> Result<PeerManagerSetAbsoluteVolumeHandlerResult, Error>
Set the absolute volume handler. Only one handler may be set at at time. If a second handler is registered it will be dropped and an error will be returned.
Sourcepub fn register_target_handler(
&self,
handler: ClientEnd<TargetHandlerMarker>,
___deadline: MonotonicInstant,
) -> Result<PeerManagerRegisterTargetHandlerResult, Error>
pub fn register_target_handler( &self, handler: ClientEnd<TargetHandlerMarker>, ___deadline: MonotonicInstant, ) -> Result<PeerManagerRegisterTargetHandlerResult, Error>
Sets an implementation of target handler that will vend delegates for each incoming remote TG -> local CT connections to handle the commands being sent by the remote TG.
Trait Implementations§
Source§impl Debug for PeerManagerSynchronousProxy
impl Debug for PeerManagerSynchronousProxy
Source§impl SynchronousProxy for PeerManagerSynchronousProxy
impl SynchronousProxy for PeerManagerSynchronousProxy
Source§type Proxy = PeerManagerProxy
type Proxy = PeerManagerProxy
The async proxy for the same protocol.
Source§type Protocol = PeerManagerMarker
type Protocol = PeerManagerMarker
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 PeerManagerSynchronousProxy
impl RefUnwindSafe for PeerManagerSynchronousProxy
impl Send for PeerManagerSynchronousProxy
impl Sync for PeerManagerSynchronousProxy
impl Unpin for PeerManagerSynchronousProxy
impl UnwindSafe for PeerManagerSynchronousProxy
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