pub struct CancellationRoute { /* private fields */ }Expand description
A destination and upstream key retained independently of startup routing.
Implementations§
Source§impl CancellationRoute
impl CancellationRoute
Sourcepub const fn new(target: ConnectTarget, upstream: CancelKey) -> Self
pub const fn new(target: ConnectTarget, upstream: CancelKey) -> Self
Creates a cancellation route.
Sourcepub const fn target(&self) -> &ConnectTarget
pub const fn target(&self) -> &ConnectTarget
Returns the original destination, including application metadata.
Sourcepub const fn upstream_key(&self) -> &CancelKey
pub const fn upstream_key(&self) -> &CancelKey
Returns the upstream cancellation key.
Trait Implementations§
Source§impl Clone for CancellationRoute
impl Clone for CancellationRoute
Source§fn clone(&self) -> CancellationRoute
fn clone(&self) -> CancellationRoute
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 CancellationRoute
impl Debug for CancellationRoute
impl Eq for CancellationRoute
Source§impl PartialEq for CancellationRoute
impl PartialEq for CancellationRoute
impl StructuralPartialEq for CancellationRoute
Auto Trait Implementations§
impl !Freeze for CancellationRoute
impl RefUnwindSafe for CancellationRoute
impl Send for CancellationRoute
impl Sync for CancellationRoute
impl Unpin for CancellationRoute
impl UnsafeUnpin for CancellationRoute
impl UnwindSafe for CancellationRoute
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