pub struct Service { /* private fields */ }Expand description
The SNTP service, assembled from the runtime subsystems it needs.
Implementations§
Source§impl Service
impl Service
Sourcepub fn new(
task_manager: &'static TaskManager,
network: &'static Manager,
time: &'static Manager<'static>,
virtual_file_system: &'static VirtualFileSystem,
minimum_timestamp: Timestamp,
) -> Self
pub fn new( task_manager: &'static TaskManager, network: &'static Manager, time: &'static Manager<'static>, virtual_file_system: &'static VirtualFileSystem, minimum_timestamp: Timestamp, ) -> Self
minimum_timestamp is the platform’s floor for UTC, as Unix time in
UTC: on a device without a battery clock, the build date, for example
time::Timestamp::from(core::time::Duration::from_secs(BUILD_EPOCH)).
Answers before it are rejected.
Auto Trait Implementations§
impl Freeze for Service
impl !RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl !UnwindSafe for Service
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