pub struct ServiceRegistration { /* private fields */ }Expand description
A ServiceRegistration is provided to the Registar for registration.
Each registration includes a function that fulfils the FnSpawnServiceHeathCheck specification.
Implementations§
Source§impl ServiceRegistration
impl ServiceRegistration
pub const fn new( service_binding: ServiceBinding, check_fn: FnSpawnServiceHeathCheck, ) -> ServiceRegistration
Source§impl ServiceRegistration
impl ServiceRegistration
pub fn spawn_check(&self) -> ServiceHealthCheckJob
Trait Implementations§
Source§impl Clone for ServiceRegistration
impl Clone for ServiceRegistration
Source§fn clone(&self) -> ServiceRegistration
fn clone(&self) -> ServiceRegistration
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 moreAuto Trait Implementations§
impl Freeze for ServiceRegistration
impl RefUnwindSafe for ServiceRegistration
impl Send for ServiceRegistration
impl Sync for ServiceRegistration
impl Unpin for ServiceRegistration
impl UnsafeUnpin for ServiceRegistration
impl UnwindSafe for ServiceRegistration
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