pub struct ConsoleMessageBuilder { /* private fields */ }Expand description
Builder for ConsoleMessage.
Implementations§
Source§impl ConsoleMessageBuilder
impl ConsoleMessageBuilder
Sourcepub fn source<VALUE: Into<ConsoleMessageSource>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source<VALUE: Into<ConsoleMessageSource>>( &mut self, value: VALUE, ) -> &mut Self
Message source.
Sourcepub fn level<VALUE: Into<ConsoleMessageLevel>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn level<VALUE: Into<ConsoleMessageLevel>>( &mut self, value: VALUE, ) -> &mut Self
Message severity.
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 message origin.
Sourcepub fn line<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn line<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Line number in the resource that generated this message (1-based).
Sourcepub fn column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn column<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Column number in the resource that generated this message (1-based).
Sourcepub fn build(&self) -> Result<ConsoleMessage, ConsoleMessageBuilderError>
pub fn build(&self) -> Result<ConsoleMessage, ConsoleMessageBuilderError>
Trait Implementations§
Source§impl Clone for ConsoleMessageBuilder
impl Clone for ConsoleMessageBuilder
Source§fn clone(&self) -> ConsoleMessageBuilder
fn clone(&self) -> ConsoleMessageBuilder
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 ConsoleMessageBuilder
impl RefUnwindSafe for ConsoleMessageBuilder
impl Send for ConsoleMessageBuilder
impl Sync for ConsoleMessageBuilder
impl Unpin for ConsoleMessageBuilder
impl UnsafeUnpin for ConsoleMessageBuilder
impl UnwindSafe for ConsoleMessageBuilder
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