net-relay 0.1.3

A set of types for network relay.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::pin::Pin;
use std::task::{Context, Poll};

use crate::Error;

/// 转发器运行trait
pub trait Relay: Send {
    /// 异步运行
    fn poll_run(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>;
}