pub struct ConsoleMessage {
inner: Weak<ConsoleMessage>,
}Expand description
ConsoleMessage objects are dispatched by page via the page::Event::Console event.
Fields§
§inner: Weak<ConsoleMessage>Implementations§
Source§impl ConsoleMessage
impl ConsoleMessage
pub(crate) fn new(inner: Weak<Impl>) -> Self
Sourcepub fn type(&self) -> Result<String, Error>
pub fn type(&self) -> Result<String, Error>
One of the following values: 'log', 'debug', 'info', 'error', 'warning', 'dir', 'dirxml', 'table',
'trace', 'clear', 'startGroup', 'startGroupCollapsed', 'endGroup', 'assert', 'profile', 'profileEnd',
'count', 'timeEnd'.
Sourcepub fn location(&self) -> Result<SourceLocation, Error>
pub fn location(&self) -> Result<SourceLocation, Error>
URL of the resource followed by 0-based line and column numbers in the resource formatted as URL:line:column.
Trait Implementations§
Source§impl Clone for ConsoleMessage
impl Clone for ConsoleMessage
Source§fn clone(&self) -> ConsoleMessage
fn clone(&self) -> ConsoleMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConsoleMessage
impl RefUnwindSafe for ConsoleMessage
impl Send for ConsoleMessage
impl Sync for ConsoleMessage
impl Unpin for ConsoleMessage
impl UnwindSafe for ConsoleMessage
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