[][src]Struct sunrise_libuser::example::IExample1Proxy

pub struct IExample1Proxy(ClientSession);

Here's a simple example of an interface. This is a service that can be connected to by connecting to "hello:1" with sm's get_service function.

Lines starting with # are documentation comments: They will end up in the documentation for the structs and traits generated from this interface.

This interface has no command - the only useful thing you can do with it is close it.

Interface names dictate where the generated structs and traits will be generated. They must follow the scheme crate_name::module::path::IFaceName.

Implementations

impl IExample1Proxy[src]

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

Creates a new IExample1Proxy by connecting to the hello:1 service.

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

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

impl IExample1Proxy[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.

Trait Implementations

impl Debug for IExample1Proxy[src]

impl From<ClientSession> for IExample1Proxy[src]

impl From<IExample1Proxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for IExample1Proxy

impl Send for IExample1Proxy

impl Sync for IExample1Proxy

impl Unpin for IExample1Proxy

impl UnwindSafe for IExample1Proxy

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.