#[non_exhaustive]pub struct ServiceChanged {
pub key: TypeKey,
pub scope: Option<String>,
pub provider: PluginId,
pub generation: u64,
pub change: ServiceChange,
}Expand description
A service binding was registered or finally removed. Emitted on the bus of the provider’s context, after the registry change and outside every lock. A registered binding becomes visible once its provider is active; removal is reported after consumers were evicted.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: TypeKey§scope: Option<String>§provider: PluginId§generation: u64§change: ServiceChangeTrait Implementations§
Source§impl Clone for ServiceChanged
impl Clone for ServiceChanged
Source§impl Debug for ServiceChanged
impl Debug for ServiceChanged
Auto Trait Implementations§
impl Freeze for ServiceChanged
impl RefUnwindSafe for ServiceChanged
impl Send for ServiceChanged
impl Sync for ServiceChanged
impl Unpin for ServiceChanged
impl UnsafeUnpin for ServiceChanged
impl UnwindSafe for ServiceChanged
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