pub struct ConsoleConstructorOptions { /* private fields */ }
Implementations§
Source§impl ConsoleConstructorOptions
impl ConsoleConstructorOptions
pub fn new_with_values( stdout: Writable, stderr: Writable, ignore_errors: Option<bool>, color_mod: JsValue, inspect_options: Option<Object>, ) -> ConsoleConstructorOptions
pub fn new(stdout: Writable, stderr: Writable) -> ConsoleConstructorOptions
pub fn stdout(&self) -> Writable
pub fn set_stdout(&mut self, value: Writable)
pub fn stderr(&self) -> Writable
pub fn set_stderr(&mut self, value: Writable)
pub fn ignore_errors(&self) -> Option<bool>
pub fn set_ignore_errors(&mut self, value: Option<bool>)
pub fn color_mod(&self) -> JsValue
pub fn set_color_mod(&mut self, value: JsValue)
pub fn inspect_options(&self) -> Option<Object>
pub fn set_inspect_options(&mut self, value: Option<Object>)
Trait Implementations§
Source§impl From<ConsoleConstructorOptions> for JsValue
impl From<ConsoleConstructorOptions> for JsValue
Source§fn from(value: ConsoleConstructorOptions) -> Self
fn from(value: ConsoleConstructorOptions) -> Self
Converts to this type from the input type.
Source§impl RefFromWasmAbi for ConsoleConstructorOptions
impl RefFromWasmAbi for ConsoleConstructorOptions
Source§type Anchor = RcRef<ConsoleConstructorOptions>
type Anchor = RcRef<ConsoleConstructorOptions>
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.Source§impl VectorFromWasmAbi for ConsoleConstructorOptions
impl VectorFromWasmAbi for ConsoleConstructorOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ConsoleConstructorOptions]>
Source§impl VectorIntoJsValue for ConsoleConstructorOptions
impl VectorIntoJsValue for ConsoleConstructorOptions
fn vector_into_jsvalue(vector: Box<[ConsoleConstructorOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for ConsoleConstructorOptions
impl VectorIntoWasmAbi for ConsoleConstructorOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ConsoleConstructorOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ConsoleConstructorOptions
impl WasmDescribeVector for ConsoleConstructorOptions
impl SupportsConstructor for ConsoleConstructorOptions
impl SupportsInstanceProperty for ConsoleConstructorOptions
impl SupportsStaticProperty for ConsoleConstructorOptions
Auto Trait Implementations§
impl Freeze for ConsoleConstructorOptions
impl RefUnwindSafe for ConsoleConstructorOptions
impl !Send for ConsoleConstructorOptions
impl !Sync for ConsoleConstructorOptions
impl Unpin for ConsoleConstructorOptions
impl UnwindSafe for ConsoleConstructorOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.