[][src]Struct sunrise_sm::UserInterface

struct UserInterface;

sm: service interface. The main interface to the Service Manager. Clients can use it to connect to or register new services (assuming they have the appropriate capabilities).

Make sure to call the IUserInterface::initialize method before using it.

Trait Implementations

impl Clone for UserInterface[src]

impl Debug for UserInterface[src]

impl Default for UserInterface[src]

impl IUserInterfaceAsync for UserInterface[src]

fn initialize(
    &mut self,
    _manager: WorkQueue<'static>,
    _pid: Pid
) -> FutureObj<Result<(), Error>>
[src]

Initialize the UserInterface, acquiring the Pid of the remote process, which will then be used to validate the permissions of each calls.

fn get_service<'a>(
    &mut self,
    work_queue: WorkQueue<'a>,
    servicename: u64
) -> FutureObj<'a, Result<ClientSession, Error>>
[src]

Get a ClientSession to this service.

fn register_service(
    &mut self,
    _work_queue: WorkQueue<'static>,
    servicename: u64,
    is_light: bool,
    max_handles: u32
) -> FutureObj<Result<ServerPort, Error>>
[src]

Register a new service, returning a ServerPort to the newly registered service.

fn unregister_service(
    &mut self,
    _work_queue: WorkQueue<'static>,
    servicename: u64
) -> FutureObj<Result<(), Error>>
[src]

Unregister a service.

Auto Trait Implementations

impl RefUnwindSafe for UserInterface

impl Send for UserInterface

impl Sync for UserInterface

impl Unpin for UserInterface

impl UnwindSafe for UserInterface

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.