Skip to main content

AdminSnapshotProvider

Trait AdminSnapshotProvider 

Source
pub trait AdminSnapshotProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn snapshot(&self) -> AdminSnapshot;

    // Provided method
    fn generation(&self) -> u64 { ... }
}
Expand description

Source of admin-visible live data. Implemented by the runtime so that reloads immediately take effect on admin endpoints.

Required Methods§

Provided Methods§

Source

fn generation(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§