pub enum PeerManagerRequest {
GetBrowseControllerForTarget {
peer_id: PeerId,
client: ServerEnd<BrowseControllerMarker>,
responder: PeerManagerGetBrowseControllerForTargetResponder,
},
GetControllerForTarget {
peer_id: PeerId,
client: ServerEnd<ControllerMarker>,
responder: PeerManagerGetControllerForTargetResponder,
},
SetAbsoluteVolumeHandler {
handler: ClientEnd<AbsoluteVolumeHandlerMarker>,
responder: PeerManagerSetAbsoluteVolumeHandlerResponder,
},
RegisterTargetHandler {
handler: ClientEnd<TargetHandlerMarker>,
responder: PeerManagerRegisterTargetHandlerResponder,
},
}
Variants§
GetBrowseControllerForTarget
Returns a browse controller client to a remote target (TG) service at
the peer specified by peer_id
.
GetControllerForTarget
Returns a controller client to a remote target (TG) service at the peer specified by
peer_id
.
Fields
§
peer_id: PeerId
§
client: ServerEnd<ControllerMarker>
§
responder: PeerManagerGetControllerForTargetResponder
SetAbsoluteVolumeHandler
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.
Fields
§
handler: ClientEnd<AbsoluteVolumeHandlerMarker>
RegisterTargetHandler
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.
Implementations§
Source§impl PeerManagerRequest
impl PeerManagerRequest
pub fn into_get_browse_controller_for_target( self, ) -> Option<(PeerId, ServerEnd<BrowseControllerMarker>, PeerManagerGetBrowseControllerForTargetResponder)>
pub fn into_get_controller_for_target( self, ) -> Option<(PeerId, ServerEnd<ControllerMarker>, PeerManagerGetControllerForTargetResponder)>
pub fn into_set_absolute_volume_handler( self, ) -> Option<(ClientEnd<AbsoluteVolumeHandlerMarker>, PeerManagerSetAbsoluteVolumeHandlerResponder)>
pub fn into_register_target_handler( self, ) -> Option<(ClientEnd<TargetHandlerMarker>, PeerManagerRegisterTargetHandlerResponder)>
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 PeerManagerRequest
impl !RefUnwindSafe for PeerManagerRequest
impl Send for PeerManagerRequest
impl Sync for PeerManagerRequest
impl Unpin for PeerManagerRequest
impl !UnwindSafe for PeerManagerRequest
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