Trait glean_core::traits::Ping

source ·
pub trait Ping {
    // Required method
    fn submit(&self, reason: Option<&str>);
}
Expand description

A description for the PingType type.

When changing this trait, make sure all the operations are implemented in the related type in ../metrics/.

Required Methods§

source

fn submit(&self, reason: Option<&str>)

Submits the ping for eventual uploading

§Arguments
  • reason - the reason the ping was triggered. Included in the ping_info.reason part of the payload.

Implementors§