pub struct Clock<M: From<ClockTickMessage> + MessageBounds> { /* private fields */ }Expand description
Clock module Parameterised by the outer message enum used on the bus
Implementations§
Source§impl<M: From<ClockTickMessage> + MessageBounds> Clock<M>
impl<M: From<ClockTickMessage> + MessageBounds> Clock<M>
pub fn register(registry: &mut dyn ModuleRegistry<M>)
Trait Implementations§
Source§impl<M: From<ClockTickMessage> + MessageBounds> Debug for Clock<M>
impl<M: From<ClockTickMessage> + MessageBounds> Debug for Clock<M>
Source§impl<M: From<ClockTickMessage> + MessageBounds> Module<M> for Clock<M>
impl<M: From<ClockTickMessage> + MessageBounds> Module<M> for Clock<M>
Source§fn init<'life0, 'async_trait>(
&'life0 self,
context: Arc<Context<M>>,
config: Arc<Config>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
context: Arc<Context<M>>,
config: Arc<Config>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialise with the given global context, and local config
fn get_name(&self) -> &'static str
fn get_description(&self) -> &'static str
Auto Trait Implementations§
impl<M> Freeze for Clock<M>
impl<M> RefUnwindSafe for Clock<M>where
M: RefUnwindSafe,
impl<M> Send for Clock<M>
impl<M> Sync for Clock<M>
impl<M> Unpin for Clock<M>where
M: Unpin,
impl<M> UnwindSafe for Clock<M>where
M: 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