rseip-cip 0.1.0

rseip-cip: common industry protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// rseip
//
// rseip - EIP&CIP in pure Rust.
// Copyright: 2021, Joylei <leingliu@gmail.com>
// License: MIT

use crate::StdResult;
use rseip_core::Error;

#[async_trait::async_trait(?Send)]
pub trait Heartbeat {
    type Error: Error;
    /// send Heartbeat message to keep underline transport alive
    async fn heartbeat(&mut self) -> StdResult<(), Self::Error>;
}