Struct x_server_stats::handlers::handlers::StatsTemplate
source · [−]struct StatsTemplate {
stats: Stats,
}
Fields
stats: Stats
Trait Implementations
sourceimpl Display for StatsTemplate
impl Display for StatsTemplate
sourceimpl Responder for StatsTemplate
impl Responder for StatsTemplate
type Body = BoxBody
sourcefn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to HttpResponse
.
sourceimpl Template for StatsTemplate
impl Template for StatsTemplate
sourcefn render_into(&self, writer: &mut impl Write + ?Sized) -> Result<()>
fn render_into(&self, writer: &mut impl Write + ?Sized) -> Result<()>
Renders the template to the given writer
buffer
sourceconst SIZE_HINT: usize = 705usize
const SIZE_HINT: usize = 705usize
Provides a conservative estimate of the expanded length of the rendered template
Auto Trait Implementations
impl RefUnwindSafe for StatsTemplate
impl Send for StatsTemplate
impl Sync for StatsTemplate
impl Unpin for StatsTemplate
impl UnwindSafe for StatsTemplate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DynTemplate for T where
T: Template,
impl<T> DynTemplate for T where
T: Template,
fn dyn_render(&self) -> Result<String, Error>
fn dyn_render(&self) -> Result<String, Error>
Helper method which allocates a new String
and renders into it
fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
Renders the template to the given writer
buffer
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> TemplateToResponse for T where
T: Template,
impl<T> TemplateToResponse for T where
T: Template,
fn to_response(&self) -> HttpResponse<BoxBody>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more