burn_router/channel/direct.rs
1use core::marker::PhantomData;
2
3/// A local channel with direct connection to the backend runner clients.
4pub struct DirectChannel<Backends, Bridge> {
5 backends: PhantomData<Backends>,
6 bridge: PhantomData<Bridge>,
7}
8
9impl<Backends, Bridge> Clone for DirectChannel<Backends, Bridge> {
10 fn clone(&self) -> Self {
11 Self {
12 backends: self.backends,
13 bridge: self.bridge,
14 }
15 }
16}