pub trait Reporting {
    type Record<'res>: Record
       where Self: 'res;
    type Reporter<'res>: Iterator<Item = Self::Record<'res>>
       where Self: 'res;

    // Required method
    fn report(&self) -> Self::Reporter<'_>;
}
Expand description

Indicates that this resource can produce output for a .well-known/core resource.

Several trivial implementations (NotReporting for resources that should not show in .well-known/core, ConstantSingleRecordReport for resources with one static record) are available that cover most scenarios in which a custom Handler is implemented.

Required Associated Types§

source

type Record<'res>: Record where Self: 'res

source

type Reporter<'res>: Iterator<Item = Self::Record<'res>> where Self: 'res

Required Methods§

source

fn report(&self) -> Self::Reporter<'_>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<H> Reporting for Option<H>
where H: Reporting,

§

type Record<'res> = <H as Reporting>::Record<'res> where Self: 'res

§

type Reporter<'res> = OptionReporter<'res, H> where Self: 'res

source§

fn report(&self) -> Self::Reporter<'_>

Implementors§