11 lines
244 B
Rust
11 lines
244 B
Rust
use std::time::Duration;
|
|
|
|
use anyhow::Result;
|
|
use async_trait::async_trait;
|
|
|
|
#[async_trait]
|
|
pub trait Timeout: Sync + Send {
|
|
async fn start_timeout(&self, _timeout: Duration) -> Result<()>;
|
|
async fn stop_timeout(&self) -> Result<()>;
|
|
}
|