pub struct Deployment<I> {
pub generation: u64,
pub registry: Registry,
pub plugin: Arc<I>,
}Expand description
One consistent view of registration metadata and executable code. 注册元数据与可执行代码的一致视图。
Fields§
§generation: u64Monotonic counter; compare successive snapshots to notice a swap. Starts at 0. 单调递增的计数器;比较前后快照即可察觉替换。初始为 0。
registry: RegistryRegistry snapshot that matches plugin.
与 plugin 相匹配的注册树快照。
plugin: Arc<I>Plugin instance serving this snapshot; the Arc keeps it alive for readers.
服务该快照的插件实例;Arc 让读者持有期间其保持存活。
Auto Trait Implementations§
impl<I> Freeze for Deployment<I>
impl<I> RefUnwindSafe for Deployment<I>where
Arc<I>: RefUnwindSafe,
impl<I> Send for Deployment<I>
impl<I> Sync for Deployment<I>
impl<I> Unpin for Deployment<I>
impl<I> UnsafeUnpin for Deployment<I>where
Arc<I>: UnsafeUnpin,
impl<I> UnwindSafe for Deployment<I>where
Arc<I>: UnwindSafe,
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