SysCtl

Struct SysCtl 

Source
pub struct SysCtl;

Implementations§

Source§

impl SysCtl

Source

pub const OP_GET: u8 = 1u8

Source

pub const OP_PUT: u8 = 2u8

Source

pub const OP_CREATE: u8 = 3u8

Source

pub const OP_QUERY_PROCESS: u8 = 4u8

Source

pub const OP_SET_LOG_LEVEL: u8 = 5u8

Source

pub const F_QUERY_STATUS: u32 = 1u32

Source

pub const F_QUERY_LIST: u32 = 2u32

Source

pub const F_QUERY_LIST_CHILDREN: u32 = 3u32

Source

pub const F_WAKE_PEER: u32 = 1u32

Source

pub fn create( parent: SysHandle, flags: u32, url: &str, ) -> Result<SysHandle, ErrorCode>

Source

pub fn create_ipc_pair( process1: SysHandle, process2: SysHandle, flags: u32, ) -> Result<(SysHandle, SysHandle), ErrorCode>

Source

pub fn get( parent: SysHandle, flags: u32, url: &str, ) -> Result<SysHandle, ErrorCode>

Source

pub fn get_res1( parent: SysHandle, flags: u32, url: &str, ) -> Result<(SysHandle, u64), ErrorCode>

Source

pub fn put(handle: SysHandle) -> Result<(), ErrorCode>

Source

pub fn put_1(handle: SysHandle, arg: u64) -> Result<(), ErrorCode>

Source

pub fn put_remote( owner_process: SysHandle, handle: SysHandle, ) -> Result<(), ErrorCode>

Source

pub fn put_remote_1( owner_process: SysHandle, handle: SysHandle, arg: u64, ) -> Result<(), ErrorCode>

Source

pub fn set_log_level(level: u8) -> Result<u8, ErrorCode>

Source

pub fn process_status(handle: SysHandle) -> Result<Option<u64>, ErrorCode>

Source

pub fn list_processes_v1( pid: u64, flat_list: bool, buf: &mut [ProcessStatsV1], ) -> Result<usize, ErrorCode>

Auto Trait Implementations§

§

impl Freeze for SysCtl

§

impl RefUnwindSafe for SysCtl

§

impl Send for SysCtl

§

impl Sync for SysCtl

§

impl Unpin for SysCtl

§

impl UnwindSafe for SysCtl

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.