1use std::pin::Pin; 2use std::task::{Context, Poll}; 3 4use crate::Error; 5 6/// 转发器运行trait 7pub trait Relay: Send { 8 /// 异步运行 9 fn poll_run(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>; 10}