burn-router 0.21.0

Multi-backend router decorator for the Burn framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::marker::PhantomData;

/// A local channel with direct connection to the backend runner clients.
pub struct DirectChannel<Backends, Bridge> {
    backends: PhantomData<Backends>,
    bridge: PhantomData<Bridge>,
}

impl<Backends, Bridge> Clone for DirectChannel<Backends, Bridge> {
    fn clone(&self) -> Self {
        Self {
            backends: self.backends,
            bridge: self.bridge,
        }
    }
}