hiway 0.2.2

An event bus with authority scopes, retention and backpressure control
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use core::task::{Context, Poll};

/// Executor-neutral driver for a transport link.
///
/// A link owns its socket or peer state and is polled by the application. The
/// router never spawns it and never chooses Tokio, async-std, or another
/// executor.
pub trait Link: Send {
    /// Driver-specific failure.
    type Error;

    /// Advances the link driver.
    fn poll(&mut self, context: &mut Context<'_>) -> Poll<Result<(), Self::Error>>;
}