pub(crate) struct Console;Expand description
Implementations§
Source§impl Console
impl Console
fn build_message( level: ConsoleLogLevel, arguments: Vec<DebuggerValue>, stacktrace: Option<Vec<StackFrame>>, ) -> ConsoleMessage
Sourcefn send_string_message(
global: &GlobalScope,
level: ConsoleLogLevel,
message: String,
)
fn send_string_message( global: &GlobalScope, level: ConsoleLogLevel, message: String, )
Helper to send a message that only consists of a single string
fn method( global: &GlobalScope, level: ConsoleLogLevel, messages: Vec<HandleValue<'_>>, include_stacktrace: IncludeStackTrace, )
fn send_to_devtools(global: &GlobalScope, message: ConsoleMessage)
fn send_to_embedder( global: &GlobalScope, level: ConsoleLogLevel, message: String, )
pub(crate) fn internal_warn(global: &GlobalScope, message: String)
Trait Implementations§
Source§impl consoleMethods<DomTypeHolder> for Console
impl consoleMethods<DomTypeHolder> for Console
Source§fn Log(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Log(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Debug(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Debug(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Info(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Info(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Warn(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Warn(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Error(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Error(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Trace(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Trace(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn Assert(
_cx: JSContext,
global: &GlobalScope,
condition: bool,
messages: Vec<HandleValue<'_>>,
)
fn Assert( _cx: JSContext, global: &GlobalScope, condition: bool, messages: Vec<HandleValue<'_>>, )
Source§fn Time(global: &GlobalScope, label: DOMString)
fn Time(global: &GlobalScope, label: DOMString)
Source§fn TimeLog(
_cx: JSContext,
global: &GlobalScope,
label: DOMString,
data: Vec<HandleValue<'_>>,
)
fn TimeLog( _cx: JSContext, global: &GlobalScope, label: DOMString, data: Vec<HandleValue<'_>>, )
Source§fn TimeEnd(global: &GlobalScope, label: DOMString)
fn TimeEnd(global: &GlobalScope, label: DOMString)
Source§fn Group(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
fn Group(_cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>)
Source§fn GroupCollapsed(
_cx: JSContext,
global: &GlobalScope,
messages: Vec<HandleValue<'_>>,
)
fn GroupCollapsed( _cx: JSContext, global: &GlobalScope, messages: Vec<HandleValue<'_>>, )
Source§fn Count(global: &GlobalScope, label: DOMString)
fn Count(global: &GlobalScope, label: DOMString)
Source§fn CountReset(global: &GlobalScope, label: DOMString)
fn CountReset(global: &GlobalScope, label: DOMString)
Auto Trait Implementations§
impl Freeze for Console
impl RefUnwindSafe for Console
impl Send for Console
impl Sync for Console
impl Unpin for Console
impl UnsafeUnpin for Console
impl UnwindSafe for Console
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert