[][src]Struct node_sys::Domain

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

Methods

impl Domain[src]

pub fn add_with_emitter(&self, emitter: &EventEmitter)[src]

impl Domain[src]

pub fn add_with_timer(&self, timer: &Timer)[src]

impl Domain[src]

pub fn bind(&self, callback: &Function) -> Function[src]

impl Domain[src]

pub fn intercept(&self, callback: &Function) -> Function[src]

impl Domain[src]

pub fn remove_with_emitter(&self, emitter: &EventEmitter)[src]

impl Domain[src]

pub fn remove_with_timer(&self, timer: &Timer)[src]

impl Domain[src]

pub fn run(&self, callback: &Function, args: Box<[JsValue]>) -> JsValue[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<Domain> for Domain[src]

impl AsRef<EventEmitter> for Domain[src]

impl AsRef<JsValue> for Domain[src]

impl Deref for Domain[src]

type Target = EventEmitter

The resulting type after dereferencing.

impl From<Domain> for JsValue[src]

impl From<Domain> for EventEmitter[src]

impl From<JsValue> for Domain[src]

impl FromWasmAbi for Domain[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 Domain[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 Domain[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 Domain[src]

impl OptionFromWasmAbi for Domain[src]

impl OptionIntoWasmAbi for Domain[src]

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

impl RefFromWasmAbi for Domain[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Domain>

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 Domain[src]

Auto Trait Implementations

impl RefUnwindSafe for Domain

impl !Send for Domain

impl !Sync for Domain

impl Unpin for Domain

impl UnwindSafe for Domain

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, 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.