[−][src]Struct sunrise_libuser::ldr::ILoaderInterfaceProxy
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]
&self,
title_name: &[u8],
args: &[u8],
env: &[u8]
) -> Result<u64, Error>
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]
fn from(sess: ClientSession) -> ILoaderInterfaceProxy
[src]
impl From<ILoaderInterfaceProxy> for ClientSession
[src]
fn from(sess: ILoaderInterfaceProxy) -> 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]
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>,