Skip to main content

CallDeadline

Trait CallDeadline 

Source
pub trait CallDeadline {
    // Required method
    fn deadline(&self) -> Instant;
}
Expand description

The deadline of a call as an Instant.

Required Methods§

Source

fn deadline(&self) -> Instant

When the caller stops waiting for the reply; no later than now once it has passed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§