pub struct InputOwnershipProxy { /* private fields */ }Implementations§
Source§impl InputOwnershipProxy
impl InputOwnershipProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.input.internal/InputOwnership.
Sourcepub fn take_event_stream(&self) -> InputOwnershipEventStream
pub fn take_event_stream(&self) -> InputOwnershipEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_event(
&self,
target: InputOwnershipTarget,
) -> QueryResponseFut<InputOwnershipGetEventResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_event( &self, target: InputOwnershipTarget, ) -> QueryResponseFut<InputOwnershipGetEventResult, DefaultFuchsiaResourceDialect> ⓘ
Gets a duplicate handle to the shared kernel ownership_event whose
orthogonal signals inform clients and the system pipeline when direct
driver input access (fuchsia.input.report.Service) is granted or revoked:
Virtcon(target=virtcon: {}): owns input iffInputOwnershipSignal.DISPLAY_UNOWNEDis asserted.Starnix(target=view_ref): owns direct input iff bothInputOwnershipSignal.DISPLAY_PLATFORM_OWNEDandInputOwnershipSignal.INPUT_CLIENT_OWNEDare asserted.SceneManager(target=platform: {}): owns platform pipeline input iff bothInputOwnershipSignal.DISPLAY_PLATFORM_OWNEDandInputOwnershipSignal.INPUT_PLATFORM_OWNEDare asserted (pauses wheneverDISPLAY_UNOWNEDorINPUT_CLIENT_OWNEDis asserted).
If target is set to an unsupported or unknown variant, the call
returns InputOwnershipError.INVALID_TARGET.
Trait Implementations§
Source§impl Clone for InputOwnershipProxy
impl Clone for InputOwnershipProxy
Source§impl Debug for InputOwnershipProxy
impl Debug for InputOwnershipProxy
Source§impl InputOwnershipProxyInterface for InputOwnershipProxy
impl InputOwnershipProxyInterface for InputOwnershipProxy
type GetEventResponseFut = QueryResponseFut<Result<Event, InputOwnershipError>>
fn get_event(&self, target: InputOwnershipTarget) -> Self::GetEventResponseFut
Source§impl Proxy for InputOwnershipProxy
impl Proxy for InputOwnershipProxy
Source§type Protocol = InputOwnershipMarker
type Protocol = InputOwnershipMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InputOwnershipProxy
impl !UnwindSafe for InputOwnershipProxy
impl Freeze for InputOwnershipProxy
impl Send for InputOwnershipProxy
impl Sync for InputOwnershipProxy
impl Unpin for InputOwnershipProxy
impl UnsafeUnpin for InputOwnershipProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.