[][src]Struct sunrise_libuser::twili::ITwiliServiceProxy

pub struct ITwiliServiceProxy(ClientSession);

The Twili Service is responsible for providing the stdin/stdout/stderr pipes to the various subprocesses. It is freely inspired by the twili switch sysmodule.

Implementations

impl ITwiliServiceProxy[src]

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

Creates a new ITwiliServiceProxy by connecting to the twili service.

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

Acquires the shared handle to the twili service - connecting if it wasn't already.

impl ITwiliServiceProxy[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 open_pipes(&self) -> Result<(IPipeProxy, IPipeProxy, IPipeProxy), Error>[src]

Recover the stdin/stdout/stderr pipes for the current process.

If none were registered, returns an error.

pub fn create_pipe(&self) -> Result<(IPipeProxy, IPipeProxy), Error>[src]

Creates a pipe whose write gets buffered and returned to the read side.

Tryting to write to the read side or read from the write side will return an error.

Trait Implementations

impl Debug for ITwiliServiceProxy[src]

impl From<ClientSession> for ITwiliServiceProxy[src]

impl From<ITwiliServiceProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for ITwiliServiceProxy

impl Send for ITwiliServiceProxy

impl Sync for ITwiliServiceProxy

impl Unpin for ITwiliServiceProxy

impl UnwindSafe for ITwiliServiceProxy

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.