pub enum ResponseRouting {
Disabled,
Protocol(Arc<dyn ResponseProtocol>),
Manual,
}Expand description
Strategy used to associate inbound messages with requests.
Variants§
Disabled
Disable correlation; the session cannot expose request completions.
Protocol(Arc<dyn ResponseProtocol>)
Classify messages automatically with an application protocol.
Tuple Fields
§
0: Arc<dyn ResponseProtocol>Shared, thread-safe classifier implementation.
Manual
Let application code resolve requests explicitly with a resolver token.
Implementations§
Source§impl ResponseRouting
impl ResponseRouting
Sourcepub fn protocol<P: ResponseProtocol>(protocol: P) -> Self
pub fn protocol<P: ResponseProtocol>(protocol: P) -> Self
Wraps a protocol implementation for use by one or more sessions.
Trait Implementations§
Source§impl Clone for ResponseRouting
impl Clone for ResponseRouting
Source§impl Debug for ResponseRouting
impl Debug for ResponseRouting
Auto Trait Implementations§
impl !RefUnwindSafe for ResponseRouting
impl !UnwindSafe for ResponseRouting
impl Freeze for ResponseRouting
impl Send for ResponseRouting
impl Sync for ResponseRouting
impl Unpin for ResponseRouting
impl UnsafeUnpin for ResponseRouting
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