Struct glory_core::web::widgets::Element

source ·
pub struct Element {
    pub name: Cow<'static, str>,
    pub is_void: bool,
    pub classes: Classes,
    pub attrs: BTreeMap<Cow<'static, str>, Box<dyn AttrValue>>,
    pub props: BTreeMap<Cow<'static, str>, Box<dyn PropValue>>,
    pub fillers: Vec<Filler>,
    /* private fields */
}

Fields§

§name: Cow<'static, str>§is_void: bool§classes: Classes§attrs: BTreeMap<Cow<'static, str>, Box<dyn AttrValue>>§props: BTreeMap<Cow<'static, str>, Box<dyn PropValue>>§fillers: Vec<Filler>

Implementations§

source§

impl Element

source

pub fn new(name: impl Into<Cow<'static, str>>, is_void: bool) -> Self

source

pub fn node(&self) -> &Node

source

pub fn add_filler(&mut self, filler: impl IntoFiller)

source

pub fn fill(self, filler: impl IntoFiller) -> Self

source

pub fn then<F>(self, func: F) -> Self
where F: FnOnce(Self) -> Self,

source

pub fn is_void(&self) -> bool

source

pub fn add_id<V>(&mut self, value: V)
where V: AttrValue + 'static,

source

pub fn id<V>(self, value: V) -> Self
where V: AttrValue + 'static,

source

pub fn add_class<V>(&mut self, value: V)
where V: ClassPart + 'static,

source

pub fn class<V>(self, value: V) -> Self
where V: ClassPart + 'static,

source

pub fn toggle_class<V, C>(self, value: V, cond: C) -> Self
where V: Into<String>, C: Into<Lotus<bool>>,

source

pub fn switch_class<TV, FV, C>(self, tv: TV, fv: FV, cond: C) -> Self
where TV: Into<String>, FV: Into<String>, C: Into<Lotus<bool>>,

source

pub fn add_prop<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)
where V: PropValue + 'static,

Adds an property to this element.

source

pub fn prop<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Self
where V: PropValue + 'static,

Adds an property to this element.

source

pub fn add_attr<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)
where V: AttrValue + 'static,

Adds an attribute to this element.

source

pub fn attr<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Self
where V: AttrValue + 'static,

Adds an attribute to this element.

source

pub fn add_event_listener<E: EventDescriptor>( &self, _event: E, _event_handler: impl FnMut(E::EventType) + 'static )

Adds an event listener to this element.

source

pub fn on<E: EventDescriptor>( self, _event: E, _event_handler: impl FnMut(E::EventType) + 'static ) -> Self

Adds an event listener to this element.

source

pub fn set_text<V>(&mut self, text: V)
where V: AttrValue + 'static,

Sets the inner Text of this element from the provided string slice.

Security

Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.

source

pub fn text<V>(self, text: V) -> Self
where V: AttrValue + 'static,

Sets the inner Text of this element from the provided string slice.

Security

Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.

source

pub fn set_html<V>(&mut self, html: V)
where V: AttrValue + 'static,

Sets the inner HTML of this element from the provided string slice.

Security

Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.

source

pub fn html<V>(self, html: V) -> Self
where V: AttrValue + 'static,

Sets the inner HTML of this element from the provided string slice.

Security

Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.

source

pub fn node_ref<T>(self, _node_ref: &NodeRef<T>) -> Self
where T: Debug,

Trait Implementations§

source§

impl AsRef<Element> for HtmlA

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlAbbr

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlAddress

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlArea

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlArticle

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlAside

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlAudio

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlB

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBase

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBdi

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBdo

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBlockQuote

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBody

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlBr

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlButton

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlCanvas

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlCaption

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlCite

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlCode

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlCol

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlColGroup

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlData

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDataList

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDd

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDel

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDetails

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDfn

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDialog

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDiv

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDl

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlDt

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlEm

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlEmbed

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlFieldSet

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlFigCaption

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlFigure

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlFooter

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlForm

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH1

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH2

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH3

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH4

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH5

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlH6

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlHGroup

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlHead

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlHeader

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlHr

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlHtml

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlI

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlIframe

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlImg

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlInput

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlIns

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlKbd

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlLabel

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlLegend

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlLi

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMain

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMap

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMark

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMath

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMenu

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMeta

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlMeter

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlNav

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlNoScript

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlObject

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlOl

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlOptGroup

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlOption

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlOutput

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlP

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlParam

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlPicture

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlPre

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlProgress

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlProtal

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlQ

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlRp

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlRt

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlRuby

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlS

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSamp

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlScript

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSection

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSelect

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSlot

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSmall

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSource

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSpan

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlStrong

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlStyle

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSub

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSummary

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSup

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlSvg

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTBody

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTFoot

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTable

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTd

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTemplate

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTextArea

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTh

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlThead

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTime

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTitle

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTr

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlTrack

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlU

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlUl

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlVar

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlVideo

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Element> for HtmlWbr

source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for Element

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Widget for Element

source§

fn build(&mut self, ctx: &mut Scope)

source§

fn flood(&mut self, ctx: &mut Scope)

Attach children
source§

fn detach(&mut self, ctx: &mut Scope)

source§

fn patch(&mut self, ctx: &mut Scope)

source§

fn store_in(self, parent: &mut Scope) -> ViewId
where Self: Sized,

source§

fn show_in(self, parent: &mut Scope) -> ViewId
where Self: Sized,

source§

fn mount_to(self, ctx: Scope, parent_node: &Node) -> ViewId
where Self: Sized,

source§

fn attach(&mut self, _ctx: &mut Scope)

source§

fn detach_children(&mut self, ctx: &mut Scope)

Auto Trait Implementations§

§

impl !RefUnwindSafe for Element

§

impl !Send for Element

§

impl !Sync for Element

§

impl Unpin for Element

§

impl !UnwindSafe for Element

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<W> IntoFiller for W
where W: Widget,

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more