pub struct RoutingPipe<Handle = PipeHandle> { /* private fields */ }Expand description
Pattern-routed dispatcher. Generic over the handle:
RoutingPipe<PipeHandle> impls Handler;
RoutingPipe<ThreadLocalPipeHandle> impls
ThreadLocalHandler.
Implementations§
Trait Implementations§
Source§impl Pipe for RoutingPipe<ThreadLocalPipeHandle>
impl Pipe for RoutingPipe<ThreadLocalPipeHandle>
Source§type Err = ProximaError
type Err = ProximaError
Source§impl<Handle> SendPipe for RoutingPipe<Handle>
impl<Handle> SendPipe for RoutingPipe<Handle>
Source§type Err = ProximaError
type Err = ProximaError
Error the pipe can fail with —
Send here so it can cross cores.Auto Trait Implementations§
impl<Handle> Freeze for RoutingPipe<Handle>
impl<Handle> RefUnwindSafe for RoutingPipe<Handle>
impl<Handle> Send for RoutingPipe<Handle>
impl<Handle> Sync for RoutingPipe<Handle>
impl<Handle> Unpin for RoutingPipe<Handle>
impl<Handle> UnsafeUnpin for RoutingPipe<Handle>
impl<Handle> UnwindSafe for RoutingPipe<Handle>
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
impl<Implementor> Handler for Implementor
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<P> PipeExt for Pwhere
P: Pipe,
impl<P> PipeExt for Pwhere
P: Pipe,
Source§fn and_then<Next>(self, next: Next) -> AndThen<Self, Next>
fn and_then<Next>(self, next: Next) -> AndThen<Self, Next>
self.and_then(next) is AndThen::new(self, next) — reads
left-to-right at the call site.Source§fn fanout(self, other: Self) -> FanOut<Self, AllOrNothing>
fn fanout(self, other: Self) -> FanOut<Self, AllOrNothing>
Broadcast to
self and other, all-or-nothing.