[][src]Struct sunrise_libuser::keyboard::StaticServiceProxy

pub struct StaticServiceProxy(ClientSession);

Keyboard interface

Implementations

impl StaticServiceProxy[src]

pub fn raw_new() -> Result<StaticServiceProxy, Error>[src]

Creates a new StaticServiceProxy by connecting to the kbrd:u service.

pub fn new() -> Result<&'static StaticServiceProxy, Error>[src]

Acquires the shared handle to the kbrd:u service - connecting if it wasn't already.

impl StaticServiceProxy[src]

pub fn clone_current_object(&self) -> Result<Self, Error>[src]

Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.

pub fn get_keyboard_event(&self) -> Result<Handle, Error>[src]

Get an handle to an event triggered on keyboard update.

pub fn read_keyboard_states(
    &self,
    unknown_0: &mut [HidKeyboardState]
) -> Result<u64, Error>
[src]

Read the x last pressed keys into the given buffer. A size is returned to indicate the number of states written in the buffer.

Trait Implementations

impl Debug for StaticServiceProxy[src]

impl From<ClientSession> for StaticServiceProxy[src]

impl From<StaticServiceProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for StaticServiceProxy

impl Send for StaticServiceProxy

impl Sync for StaticServiceProxy

impl Unpin for StaticServiceProxy

impl UnwindSafe for StaticServiceProxy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.