pub struct DirectoryUpdate {
pub node: NodeId,
pub epoch: u64,
pub registrations: Vec<ActorRegistration>,
}Expand description
A state-based directory update: node node’s complete set of local
registrations at monotonic epoch (cross-node-actors publish/revoke). Receivers
replace everything they hold for node, applying an update only if its
epoch is newer — so updates are idempotent and reorder-safe. Publishing an
empty registrations revokes all of node’s entries (e.g. on leave).
Fields§
§node: NodeIdThe node whose local registrations this snapshot describes.
epoch: u64Monotonic per-node version; higher supersedes lower.
registrations: Vec<ActorRegistration>The node’s full set of local registrations at this epoch.
Trait Implementations§
Source§impl Clone for DirectoryUpdate
impl Clone for DirectoryUpdate
Source§fn clone(&self) -> DirectoryUpdate
fn clone(&self) -> DirectoryUpdate
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 DirectoryUpdate
impl Debug for DirectoryUpdate
Source§impl<'de> Deserialize<'de> for DirectoryUpdate
impl<'de> Deserialize<'de> for DirectoryUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirectoryUpdate
impl PartialEq for DirectoryUpdate
Source§impl Serialize for DirectoryUpdate
impl Serialize for DirectoryUpdate
impl StructuralPartialEq for DirectoryUpdate
Auto Trait Implementations§
impl Freeze for DirectoryUpdate
impl RefUnwindSafe for DirectoryUpdate
impl Send for DirectoryUpdate
impl Sync for DirectoryUpdate
impl Unpin for DirectoryUpdate
impl UnsafeUnpin for DirectoryUpdate
impl UnwindSafe for DirectoryUpdate
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