[][src]Struct sunrise_libuser::example::IExample2Proxy

pub struct IExample2Proxy(ClientSession);

Let's make things a bit more interesting by adding a function or two.

Implementations

impl IExample2Proxy[src]

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

Creates a new IExample2Proxy by connecting to the hello:2 service.

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

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

impl IExample2Proxy[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 function(&self) -> Result<(), Error>[src]

This is the most simple kind of function: It takes no argument, and returns no value. It has cmdid 0, and is named "function".

Even though it returns no value, it may still return an error! Any command is allowed to return any error.

pub fn function2(&self, val1: u32, val2: u32) -> Result<(bool, bool), Error>[src]

Here's a more complex function. This function takes two u32 as an argument, and return two bools.

Notice that cmdid don't need to be sequential, and don't need to start at 0. The only requirement is that they are unique within an interface.

Trait Implementations

impl Debug for IExample2Proxy[src]

impl From<ClientSession> for IExample2Proxy[src]

impl From<IExample2Proxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for IExample2Proxy

impl Send for IExample2Proxy

impl Sync for IExample2Proxy

impl Unpin for IExample2Proxy

impl UnwindSafe for IExample2Proxy

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.