pub struct InMemoryCancellationRegistry { /* private fields */ }Expand description
Thread-safe in-memory cancellation routes which preserve upstream keys.
This is suitable for one-upstream-per-downstream intermediaries which do not need pool-level cancellation key translation.
Trait Implementations§
Source§impl Clone for InMemoryCancellationRegistry
impl Clone for InMemoryCancellationRegistry
Source§fn clone(&self) -> InMemoryCancellationRegistry
fn clone(&self) -> InMemoryCancellationRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryCancellationRegistry
impl Debug for InMemoryCancellationRegistry
Source§impl Default for InMemoryCancellationRegistry
impl Default for InMemoryCancellationRegistry
Source§fn default() -> InMemoryCancellationRegistry
fn default() -> InMemoryCancellationRegistry
Returns the “default value” for a type. Read more
Source§impl IntermediaryCancellationRegistry for InMemoryCancellationRegistry
impl IntermediaryCancellationRegistry for InMemoryCancellationRegistry
Source§type Error = InMemoryCancellationRegistryError
type Error = InMemoryCancellationRegistryError
Collision, allocation, or storage failure.
Source§fn register(&self, route: CancellationRoute) -> Result<CancelKey, Self::Error>
fn register(&self, route: CancellationRoute) -> Result<CancelKey, Self::Error>
Records a live route and returns the proxy key exposed downstream. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCancellationRegistry
impl RefUnwindSafe for InMemoryCancellationRegistry
impl Send for InMemoryCancellationRegistry
impl Sync for InMemoryCancellationRegistry
impl Unpin for InMemoryCancellationRegistry
impl UnsafeUnpin for InMemoryCancellationRegistry
impl UnwindSafe for InMemoryCancellationRegistry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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