pub struct LogEntryBuilder { /* private fields */ }Available on crate features
Log and Runtime and Network only.Implementations§
Source§impl LogEntryBuilder
impl LogEntryBuilder
Sourcepub fn source(&mut self, v: LogEntrySource) -> &mut Self
pub fn source(&mut self, v: LogEntrySource) -> &mut Self
Log entry source.
Sourcepub fn level(&mut self, v: LogEntryLevel) -> &mut Self
pub fn level(&mut self, v: LogEntryLevel) -> &mut Self
Log entry severity.
Sourcepub fn line_number(&mut self, v: u32) -> &mut Self
pub fn line_number(&mut self, v: u32) -> &mut Self
Line number in the resource.
Sourcepub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
pub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
JavaScript stack trace.
Sourcepub fn network_request_id(&mut self, v: RequestId) -> &mut Self
pub fn network_request_id(&mut self, v: RequestId) -> &mut Self
Identifier of the network request associated with this entry.
Sourcepub fn worker_id(&mut self, v: String) -> &mut Self
pub fn worker_id(&mut self, v: String) -> &mut Self
Identifier of the worker associated with this entry.
Sourcepub fn args(&mut self, v: Vec<RemoteObject>) -> &mut Self
pub fn args(&mut self, v: Vec<RemoteObject>) -> &mut Self
Call arguments.
pub fn build(&mut self) -> Result<LogEntry, &'static str>
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 moreSource§impl Debug for LogEntryBuilder
impl Debug for LogEntryBuilder
Auto Trait Implementations§
impl Freeze for LogEntryBuilder
impl RefUnwindSafe for LogEntryBuilder
impl Send for LogEntryBuilder
impl Sync for LogEntryBuilder
impl Unpin 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