Type Alias calloop::sources::ping::Ping

source ·
pub type Ping = Ping;
Expand description

The ping event source

You can insert it in your event loop to receive pings.

If you use it directly, it will automatically remove itself from the event loop once all Ping instances are dropped.

Aliased Type§

struct Ping {
    event: Arc<FlagOnDrop, Global>,
}

Fields§

§event: Arc<FlagOnDrop, Global>

Implementations§

source§

impl Ping

source

pub fn ping(&self)

Send a ping to the PingSource.

Trait Implementations§

source§

impl Clone for Ping

source§

fn clone(&self) -> Ping

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Ping

source§

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

Formats the value using the given formatter. Read more