[−][src]Struct sunrise_libuser::example::IExample2Proxy
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]
fn from(sess: ClientSession) -> IExample2Proxy
[src]
impl From<IExample2Proxy> for ClientSession
[src]
fn from(sess: IExample2Proxy) -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,