pub enum Backend {
Echo(EchoBackend),
Forward(ForwardBackend),
}Expand description
Closed set of data-plane backends for non-zero channels.
Channel 0 is structurally special and remains Router::control, not an
enum variant. Static/test backends live in Router::backends; the forwarding
backend is selected dynamically only when a per-connection forwarding binding exists.
Variants§
Echo(EchoBackend)
Forward(ForwardBackend)
Implementations§
Trait Implementations§
Source§impl From<EchoBackend> for Backend
impl From<EchoBackend> for Backend
Source§fn from(backend: EchoBackend) -> Self
fn from(backend: EchoBackend) -> Self
Converts to this type from the input type.
Source§impl From<ForwardBackend> for Backend
impl From<ForwardBackend> for Backend
Source§fn from(backend: ForwardBackend) -> Self
fn from(backend: ForwardBackend) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for Backend
impl Freeze for Backendwhere
*const ArcInner<ForwardingTable> is !null: Freeze,
PhantomData<ArcInner<ForwardingTable>>: Freeze,
impl Move for Backend
impl RefUnwindSafe for Backendwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Option<Arc<Sender<FlushCount>>>>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
RwLock<Admission>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
RwLock<ForwardingInner>: RefUnwindSafe,
Mutex<HashMap<ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>>>: RefUnwindSafe,
Mutex<HashMap<ConnectionId, ConnectionCloseSender>>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
Mutex<ReaderDiagnostics>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<HashMap<String, u64>>: RefUnwindSafe,
Mutex<DropWindow>: RefUnwindSafe,
Mutex<HashMap<String, ModuleBreakerState>>: RefUnwindSafe,
Mutex<RouteBindConcurrencyState>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backendwhere
*const ArcInner<ForwardingTable> is !null: UnsafeUnpin,
PhantomData<ArcInner<ForwardingTable>>: UnsafeUnpin,
impl UnwindSafe for Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more