pub struct Published { /* private fields */ }Expand description
What a publish did, as the caller needs to hear it.
The returned snapshot is the one now published. Handing it back means the caller can act on exactly the value readers will see, rather than re-loading and racing a second publish.
Implementations§
Source§impl Published
impl Published
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
The number of this publish.
Sourcepub fn changed(&self) -> &[PrimitiveKind]
pub fn changed(&self) -> &[PrimitiveKind]
The kinds this publish touched.
A publish that removes a tool that was not there touches nothing and reports nothing, so a caller that drives notifications off this list does not announce a change nobody made.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Published
impl RefUnwindSafe for Published
impl Send for Published
impl Sync for Published
impl Unpin for Published
impl UnsafeUnpin for Published
impl UnwindSafe for Published
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