[][src]Struct sunrise_libuser::ldr::ILoaderInterfaceProxy

pub struct ILoaderInterfaceProxy(ClientSession);

A mishmash of Nintendo's loader and pm in a single disgusting service.

Responsible for creating, loading, starting and waiting on processes.

Implementations

impl ILoaderInterfaceProxy[src]

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

Creates a new ILoaderInterfaceProxy by connecting to the ldr:shel service.

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

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

impl ILoaderInterfaceProxy[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 create_title(
    &self,
    title_name: &[u8],
    args: &[u8],
    env: &[u8]
) -> Result<u64, Error>
[src]

Create and load the process title_name with the given args and env. Returns the process' pid. The process will not be started yet, use launch_title to start it.

The args given is a cmdline string that will be passed verbatim to the subprocess. The environment should be a \0-delimited array of environment variables.

pub fn launch_title(&self, pid: u64) -> Result<(), Error>[src]

Starts a process created with create_title.

pub fn wait(&self, pid: u64) -> Result<u32, Error>[src]

Wait for the process with the given pid, returning the exit status.

pub fn get_name(&self, pid: u64, title_name: &mut [u8]) -> Result<u64, Error>[src]

Get process name.

pub fn kill(&self, pid: u64) -> Result<(), Error>[src]

Wait for the process with the given pid, returning the exit status.

pub fn get_state(&self, pid: u64) -> Result<u8, Error>[src]

Gets the state of the provided pid

pub fn get_process_state_changed_event(&self) -> Result<ReadableEvent, Error>[src]

Get an event that gets signaled whenever a process changes state.

Trait Implementations

impl Debug for ILoaderInterfaceProxy[src]

impl From<ClientSession> for ILoaderInterfaceProxy[src]

impl From<ILoaderInterfaceProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for ILoaderInterfaceProxy

impl Send for ILoaderInterfaceProxy

impl Sync for ILoaderInterfaceProxy

impl Unpin for ILoaderInterfaceProxy

impl UnwindSafe for ILoaderInterfaceProxy

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.