[][src]Struct xterm_js_sys::xterm::TerminalAddon

#[repr(transparent)]pub struct TerminalAddon {
    obj: Disposable,
}

An addon that can provide additional functionality to the terminal.

(This is a duck-typed interface; its Rust dual is available here when the ext feature is enabled).

Fields

obj: Disposable

Implementations

impl TerminalAddon[src]

pub fn activate(&self, terminal: Terminal)[src]

This is called when the addon is activated.

Methods from Deref<Target = Disposable>

pub fn dispose(&self)[src]

Disposes of the instance.

This can involve unregistering an event listener or cleaning up resources or anything else that should happen when an instance is disposed of.

Trait Implementations

impl AsRef<Disposable> for TerminalAddon[src]

impl AsRef<JsValue> for TerminalAddon[src]

impl AsRef<TerminalAddon> for TerminalAddon[src]

impl Clone for TerminalAddon[src]

impl Debug for TerminalAddon[src]

impl Deref for TerminalAddon[src]

type Target = Disposable

The resulting type after dereferencing.

impl From<JsValue> for TerminalAddon[src]

impl From<TerminalAddon> for JsValue[src]

impl From<TerminalAddon> for Disposable[src]

impl FromWasmAbi for TerminalAddon[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<X> IntoJsInterface<TerminalAddon> for X where
    X: XtermAddon,
    X: Clone + 'static, 
[src]

Anything that implements XtermAddon (and is Clone + 'static) gets an implementation of IntoJsInterface<TerminalAddon>.

fn to(self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface).

fn by_ref(&self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface) by reference.

impl IntoWasmAbi for TerminalAddon[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 TerminalAddon[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 TerminalAddon[src]

impl OptionFromWasmAbi for TerminalAddon[src]

impl OptionIntoWasmAbi for TerminalAddon[src]

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

impl RefFromWasmAbi for TerminalAddon[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<TerminalAddon>

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

Auto Trait Implementations

impl RefUnwindSafe for TerminalAddon

impl !Send for TerminalAddon

impl !Sync for TerminalAddon

impl Unpin for TerminalAddon

impl UnwindSafe for TerminalAddon

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<X> IntoJsInterface<Disposable> for X where
    X: XtermDisposable + Clone + 'static, 
[src]

fn to(Self) -> Disposable[src]

This is supported on feature="ext" only.

Converts the XtermDisposable implementor into an instance of Disposable (the corresponding JS interface).

fn by_ref(&Self) -> Disposable[src]

This is supported on feature="ext" only.

Converts the XtermDisposable implementor into an instance of Disposable (the corresponding JS interface) by reference.

impl<X> IntoJsInterface<TerminalAddon> for X where
    X: XtermAddon + Clone + 'static, 
[src]

fn to(Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface).

fn by_ref(&Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface) by reference.

impl<X> IntoJsInterface<TerminalAddon> for X where
    X: XtermAddon + Clone + 'static, 
[src]

fn to(Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface).

fn by_ref(&Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

Converts the XtermAddon implementor into an instance of TerminalAddon (the corresponding JS interface) by reference.

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.

impl<X> XtermAddon for X where
    X: Clone + 'static + AsRef<Disposable> + AsRef<TerminalAddon>, 
[src]

fn activate(&Self, Terminal)[src]

This is supported on feature="ext" only.

activate for types that implement the TerminalAddon interface.

fn into_js_by_ref(&Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

into_js_by_ref for types that implement the TerminalAddon interface.

This differs from the default impl in that it manages to avoid a Clone before effectively doing what into_js does.

fn into_js(Self) -> TerminalAddon[src]

This is supported on feature="ext" only.

into_js for types that implement the TerminalAddon interface.

This differs from the default impl in that it manages to avoid "double wrapping" the methods in the interface (types that impl TerminalAddon the wasm-bindgen way already have a wrapped up Object they can hand us).

impl<X> XtermDisposable for X where
    X: Clone + 'static + AsRef<Disposable>, 
[src]

fn dispose(&Self)[src]

This is supported on feature="ext" only.

dispose for types that implement the Disposable interface.

fn into_js_by_ref(&Self) -> Disposable[src]

This is supported on feature="ext" only.

into_js_by_ref for types that implement the Disposable interface.

This differs from the default impl in that it manages to avoid a Clone before effectively doing what into_js does.

fn into_js(Self) -> Disposable[src]

This is supported on feature="ext" only.

into_js for types that implement the Disposable interface.

This differs from the default impl in that it manages to avoid "double wrapping" the methods in the interface (types that impl Disposable the wasm-bindgen way already have a wrapped up Object they can hand us).