pub struct InputOwnershipSynchronousProxy { /* private fields */ }Implementations§
Source§impl InputOwnershipSynchronousProxy
impl InputOwnershipSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<InputOwnershipEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<InputOwnershipEvent, 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_event(
&self,
target: InputOwnershipTarget,
___deadline: MonotonicInstant,
) -> Result<InputOwnershipGetEventResult, Error>
pub fn get_event( &self, target: InputOwnershipTarget, ___deadline: MonotonicInstant, ) -> Result<InputOwnershipGetEventResult, Error>
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 From<Channel> for InputOwnershipSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for InputOwnershipSynchronousProxy
Available on Fuchsia only.
Source§impl From<InputOwnershipSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<InputOwnershipSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: InputOwnershipSynchronousProxy) -> Self
fn from(value: InputOwnershipSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for InputOwnershipSynchronousProxy
Available on Fuchsia only.
impl FromClient for InputOwnershipSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = InputOwnershipMarker
type Protocol = InputOwnershipMarker
The protocol.
Source§fn from_client(value: ClientEnd<InputOwnershipMarker>) -> Self
fn from_client(value: ClientEnd<InputOwnershipMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for InputOwnershipSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for InputOwnershipSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = InputOwnershipProxy
type Proxy = InputOwnershipProxy
The async proxy for the same protocol.
Source§type Protocol = InputOwnershipMarker
type Protocol = InputOwnershipMarker
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 InputOwnershipSynchronousProxy
impl RefUnwindSafe for InputOwnershipSynchronousProxy
impl Send for InputOwnershipSynchronousProxy
impl Sync for InputOwnershipSynchronousProxy
impl Unpin for InputOwnershipSynchronousProxy
impl UnsafeUnpin for InputOwnershipSynchronousProxy
impl UnwindSafe for InputOwnershipSynchronousProxy
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