pub struct LiveRunTarget {
pub thread_id: String,
pub run_id: String,
pub dispatch_id: Option<String>,
}Expand description
Exact live-run target for cross-node ephemeral control.
Thread-only routing is intentionally insufficient for distributed backends: a stale subscriber for the same thread must not be able to ack a command intended for a newer run/dispatch.
Fields§
§thread_id: String§run_id: String§dispatch_id: Option<String>Implementations§
Source§impl LiveRunTarget
impl LiveRunTarget
pub fn new( thread_id: impl Into<String>, run_id: impl Into<String>, ) -> LiveRunTarget
pub fn with_dispatch_id(self, dispatch_id: impl Into<String>) -> LiveRunTarget
Trait Implementations§
Source§impl Clone for LiveRunTarget
impl Clone for LiveRunTarget
Source§fn clone(&self) -> LiveRunTarget
fn clone(&self) -> LiveRunTarget
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 LiveRunTarget
impl Debug for LiveRunTarget
Source§impl<'de> Deserialize<'de> for LiveRunTarget
impl<'de> Deserialize<'de> for LiveRunTarget
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LiveRunTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LiveRunTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LiveRunTarget
Source§impl PartialEq for LiveRunTarget
impl PartialEq for LiveRunTarget
Source§fn eq(&self, other: &LiveRunTarget) -> bool
fn eq(&self, other: &LiveRunTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LiveRunTarget
impl Serialize for LiveRunTarget
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LiveRunTarget
Auto Trait Implementations§
impl Freeze for LiveRunTarget
impl RefUnwindSafe for LiveRunTarget
impl Send for LiveRunTarget
impl Sync for LiveRunTarget
impl Unpin for LiveRunTarget
impl UnsafeUnpin for LiveRunTarget
impl UnwindSafe for LiveRunTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.