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 Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
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