1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/// Futures returned by [`crate::start`] to drive the asynchronous `ASHv2` actor. pub struct Futures<T, R> { /// Future that drives outbound `ASHv2` frame transmission. pub transmitter: T, /// Future that drives inbound `ASHv2` frame reception. pub receiver: R, } impl<T, R> Futures<T, R> { /// Create named actor futures. pub const fn new(transmitter: T, receiver: R) -> Self { Self { transmitter, receiver, } } }