pub struct LogEntryBuilder { /* private fields */ }Expand description
Builder for LogEntry.
Implementations§
Source§impl LogEntryBuilder
impl LogEntryBuilder
Sourcepub fn source<VALUE: Into<LogEntrySource>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<LogEntrySource>>(&mut self, value: VALUE) -> &mut Self
Log entry source.
Sourcepub fn level<VALUE: Into<LogEntryLevel>>(&mut self, value: VALUE) -> &mut Self
pub fn level<VALUE: Into<LogEntryLevel>>(&mut self, value: VALUE) -> &mut Self
Log entry severity.
pub fn category<VALUE: Into<LogEntryCategory>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn timestamp<VALUE: Into<Timestamp>>(&mut self, value: VALUE) -> &mut Self
pub fn timestamp<VALUE: Into<Timestamp>>(&mut self, value: VALUE) -> &mut Self
Timestamp when this entry was added.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL of the resource if known.
Sourcepub fn line_number<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn line_number<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Line number in the resource.
Sourcepub fn stack_trace<VALUE: Into<StackTrace>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn stack_trace<VALUE: Into<StackTrace>>( &mut self, value: VALUE, ) -> &mut Self
JavaScript stack trace.
Sourcepub fn network_request_id<VALUE: Into<RequestId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn network_request_id<VALUE: Into<RequestId>>( &mut self, value: VALUE, ) -> &mut Self
Identifier of the network request associated with this entry.
Sourcepub fn worker_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn worker_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Identifier of the worker associated with this entry.
Sourcepub fn args<VALUE: Into<Vec<RemoteObject>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn args<VALUE: Into<Vec<RemoteObject>>>( &mut self, value: VALUE, ) -> &mut Self
Call arguments.
Trait Implementations§
Source§impl Clone for LogEntryBuilder
impl Clone for LogEntryBuilder
Source§fn clone(&self) -> LogEntryBuilder
fn clone(&self) -> LogEntryBuilder
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 LogEntryBuilder
impl RefUnwindSafe for LogEntryBuilder
impl Send for LogEntryBuilder
impl Sync for LogEntryBuilder
impl Unpin for LogEntryBuilder
impl UnsafeUnpin for LogEntryBuilder
impl UnwindSafe for LogEntryBuilder
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