[][src]Struct node_sys::Process

#[repr(transparent)]
pub struct Process { /* fields omitted */ }

Methods

impl Process[src]

pub fn abort(&self) -> Result<(), JsValue>[src]

impl Process[src]

pub fn chdir(&self, directory: JsString)[src]

impl Process[src]

pub fn config(&self) -> Object[src]

impl Process[src]

pub fn cpu_usage(&self, previous_value: Option<&CpuUsage>) -> CpuUsage[src]

impl Process[src]

pub fn cwd(&self) -> JsString[src]

impl Process[src]

pub fn disconnect(&self)[src]

impl Process[src]

pub fn emit_warning(
    &self,
    warning: &JsString,
    name: Option<&JsString>,
    ctor: Option<&Function>
)
[src]

impl Process[src]

pub fn exit(&self)[src]

impl Process[src]

pub fn get_egid(&self) -> i32[src]

impl Process[src]

pub fn get_euid(&self) -> i32[src]

impl Process[src]

pub fn get_gid(&self) -> i32[src]

impl Process[src]

pub fn get_groups(&self) -> Box<[JsValue]>[src]

impl Process[src]

pub fn get_uid(&self) -> i32[src]

impl Process[src]

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

impl Process[src]

pub fn kill_with_signal_name(
    &self,
    pid: u32,
    signal_name: &JsString
) -> Result<(), JsValue>
[src]

impl Process[src]

pub fn kill_with_signal_id(
    &self,
    pid: u32,
    signal_id: i32
) -> Result<(), JsValue>
[src]

impl Process[src]

impl Process[src]

pub fn next_tick(&self, callback: &Function, args: Box<[JsValue]>)[src]

impl Process[src]

pub fn resource_usage(&self) -> Object[src]

impl Process[src]

pub fn send(
    &self,
    message: &JsValue,
    send_handle: Option<&Object>,
    options: Option<ProcessSendOptions>,
    callback: Option<&Function>
) -> bool
[src]

impl Process[src]

pub fn set_egid(&self, id: u32) -> Result<(), JsValue>[src]

impl Process[src]

pub fn set_euid(&self, id: u32) -> Result<(), JsValue>[src]

impl Process[src]

pub fn set_gid(&self, id: u32) -> Result<(), JsValue>[src]

impl Process[src]

pub fn set_uid(&self, id: u32) -> Result<(), JsValue>[src]

impl Process[src]

pub fn set_groups(&self, id: u32) -> Result<(), JsValue>[src]

impl Process[src]

impl Process[src]

pub fn umask(&self, mask: Option<u32>) -> u32[src]

impl Process[src]

pub fn uptime(&self) -> f64[src]

impl Process[src]

impl Process[src]

pub fn arch(&self) -> JsString[src]

impl Process[src]

pub fn argv(&self) -> Box<[JsValue]>[src]

impl Process[src]

pub fn argv0(&self) -> JsString[src]

impl Process[src]

pub fn connected(&self) -> bool[src]

impl Process[src]

pub fn debug_port(&self) -> Number[src]

impl Process[src]

pub fn domain(&self) -> Option<Domain>[src]

impl Process[src]

pub fn env(&self) -> Object[src]

impl Process[src]

pub fn exec_argv(&self) -> Box<[JsValue]>[src]

impl Process[src]

pub fn exec_path(&self) -> JsString[src]

impl Process[src]

pub fn exit_code(&self) -> Option<i32>[src]

impl Process[src]

impl Process[src]

pub fn hr_time(&self) -> HrTime[src]

impl Process[src]

impl Process[src]

pub fn no_deprecation(&self) -> bool[src]

impl Process[src]

pub fn pid(&self) -> JsString[src]

impl Process[src]

pub fn platform(&self) -> JsString[src]

impl Process[src]

pub fn ppid(&self) -> JsString[src]

impl Process[src]

pub fn release(&self) -> ProcessRelease[src]

impl Process[src]

pub fn report(&self) -> Object[src]

impl Process[src]

pub fn stderr(&self) -> Writable[src]

impl Process[src]

pub fn stdin(&self) -> Readable[src]

impl Process[src]

pub fn stdout(&self) -> Writable[src]

impl Process[src]

pub fn throw_deprecation(&self) -> bool[src]

impl Process[src]

pub fn title(&self) -> JsString[src]

impl Process[src]

pub fn trace_deprecation(&self) -> bool[src]

impl Process[src]

pub fn version(&self) -> JsString[src]

impl Process[src]

Methods from Deref<Target = EventEmitter>

pub fn set_default_max_listeners(&self, value: f64)[src]

pub fn add_listener(
    &self,
    event_name: &str,
    listener: &Function
) -> EventEmitter
[src]

pub fn emit(&self, event_name: &str, args: Box<[JsValue]>) -> bool[src]

pub fn event_names(&self) -> Box<[JsValue]>[src]

pub fn listener_count(&self) -> f64[src]

pub fn listeners(&self, event_name: &str) -> Box<[JsValue]>[src]

pub fn off(&self, event_name: &str, listener: &Function) -> EventEmitter[src]

pub fn on(&self, event_name: &str, listener: &Function) -> EventEmitter[src]

pub fn once(&self, event_name: &str, listener: &Function) -> EventEmitter[src]

pub fn prepend_listener(
    &self,
    event_name: &str,
    listener: &Function
) -> EventEmitter
[src]

pub fn prepend_once_listener(
    &self,
    event_name: &str,
    listener: &Function
) -> EventEmitter
[src]

pub fn remove_all_listeners(&self, event_name: Option<&str>) -> EventEmitter[src]

pub fn remove_listener(
    &self,
    event_name: &str,
    listener: &Function
) -> EventEmitter
[src]

pub fn raw_listeners(&self, event_name: &str) -> Box<[JsValue]>[src]

Trait Implementations

impl AsRef<EventEmitter> for Process[src]

impl AsRef<JsValue> for Process[src]

impl AsRef<Process> for Process[src]

impl Clone for Process[src]

impl Debug for Process[src]

impl Deref for Process[src]

type Target = EventEmitter

The resulting type after dereferencing.

impl From<JsValue> for Process[src]

impl From<Process> for JsValue[src]

impl From<Process> for EventEmitter[src]

impl FromWasmAbi for Process[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Process[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Process[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for Process[src]

impl OptionFromWasmAbi for Process[src]

impl OptionIntoWasmAbi for Process[src]

impl<'a> OptionIntoWasmAbi for &'a Process[src]

impl RefFromWasmAbi for Process[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Process>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl WasmDescribe for Process[src]

Auto Trait Implementations

impl RefUnwindSafe for Process

impl !Send for Process

impl !Sync for Process

impl Unpin for Process

impl UnwindSafe for Process

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> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.