pub struct FrozenTargets {
pub frozen_at_cursor: u64,
pub mode: DeliveryMode,
pub recipients: Vec<FrozenTargetRecipient>,
}Expand description
Set of target recipients frozen at queue admission time.
A one-shot publication freezes its matched recipient IDs/generations at durable admission. Each recipient gets its own delivery identity and outcome; later matching nodes do not silently receive it.
Fields§
§frozen_at_cursor: u64Durable queue cursor at which targets were frozen.
mode: DeliveryModeSelected delivery mode.
recipients: Vec<FrozenTargetRecipient>Frozen recipient list.
Implementations§
Source§impl FrozenTargets
impl FrozenTargets
Sourcepub fn resolve(
index: &NodeFeatureIndex,
cursor: u64,
selector: &TargetSelector,
mode: DeliveryMode,
) -> FrozenTargets
pub fn resolve( index: &NodeFeatureIndex, cursor: u64, selector: &TargetSelector, mode: DeliveryMode, ) -> FrozenTargets
Resolve selector against feature index and freeze matching recipients.
Sourcepub fn validate_before_effect(
&self,
index: &NodeFeatureIndex,
) -> Vec<(FrozenTargetRecipient, RecipientEffectStatus)>
pub fn validate_before_effect( &self, index: &NodeFeatureIndex, ) -> Vec<(FrozenTargetRecipient, RecipientEffectStatus)>
Recheck live state and generation of all frozen recipients before effect execution.
Trait Implementations§
Source§impl Clone for FrozenTargets
impl Clone for FrozenTargets
Source§fn clone(&self) -> FrozenTargets
fn clone(&self) -> FrozenTargets
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 FrozenTargets
impl Debug for FrozenTargets
Source§impl<'de> Deserialize<'de> for FrozenTargets
impl<'de> Deserialize<'de> for FrozenTargets
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrozenTargets, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrozenTargets, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FrozenTargets
Source§impl PartialEq for FrozenTargets
impl PartialEq for FrozenTargets
Source§impl Serialize for FrozenTargets
impl Serialize for FrozenTargets
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 FrozenTargets
Auto Trait Implementations§
impl Forget for FrozenTargets
impl Freeze for FrozenTargets
impl Move for FrozenTargets
impl RefUnwindSafe for FrozenTargets
impl Send for FrozenTargets
impl Sync for FrozenTargets
impl Unpin for FrozenTargets
impl UnsafeUnpin for FrozenTargets
impl UnwindSafe for FrozenTargets
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§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.