pub struct AutoConfigurationPackageChangeCallbackHandle { /* private fields */ }Expand description
This struct manages deregistering the Service Fabric Config Package Change callback when it leaves scope.
Implementations§
Source§impl AutoConfigurationPackageChangeCallbackHandle
impl AutoConfigurationPackageChangeCallbackHandle
Sourcepub fn new<T>(
activation_ctx: &CodePackageActivationContext,
handler: T,
) -> Result<Self>where
T: Fn(&ConfigurationPackageChangeEvent) + 'static,
pub fn new<T>(
activation_ctx: &CodePackageActivationContext,
handler: T,
) -> Result<Self>where
T: Fn(&ConfigurationPackageChangeEvent) + 'static,
Register a new handle for the provided lambda. Clones (e.g. adjusts reference count) on activation_ctx
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoConfigurationPackageChangeCallbackHandle
impl RefUnwindSafe for AutoConfigurationPackageChangeCallbackHandle
impl Send for AutoConfigurationPackageChangeCallbackHandle
impl Sync for AutoConfigurationPackageChangeCallbackHandle
impl Unpin for AutoConfigurationPackageChangeCallbackHandle
impl UnwindSafe for AutoConfigurationPackageChangeCallbackHandle
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