Struct canadensis_linux::SystemClock
source · pub struct SystemClock { /* private fields */ }
Expand description
A clock that uses the operating system’s clock
Implementations§
source§impl SystemClock
impl SystemClock
Trait Implementations§
source§impl Clock for SystemClock
impl Clock for SystemClock
source§impl Clone for SystemClock
impl Clone for SystemClock
source§fn clone(&self) -> SystemClock
fn clone(&self) -> SystemClock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SystemClock
impl Debug for SystemClock
source§impl Default for SystemClock
impl Default for SystemClock
source§impl ReceiveDriver<SystemClock> for LinuxCan
impl ReceiveDriver<SystemClock> for LinuxCan
source§fn receive(
&mut self,
clock: &mut SystemClock
) -> Result<Frame<Microseconds64>, Self::Error>
fn receive( &mut self, clock: &mut SystemClock ) -> Result<Frame<Microseconds64>, Self::Error>
Attempts to receive a frame without blocking
source§fn apply_filters<S>(&mut self, local_node: Option<CanNodeId>, subscriptions: S)where
S: IntoIterator<Item = Subscription>,
fn apply_filters<S>(&mut self, local_node: Option<CanNodeId>, subscriptions: S)where S: IntoIterator<Item = Subscription>,
Sets up frame reception filters to accept only frames matching the provided subscriptions Read more
source§fn apply_accept_all(&mut self)
fn apply_accept_all(&mut self)
Sets up frame reception filters to accept all incoming frames
source§impl TransmitDriver<SystemClock> for LinuxCan
impl TransmitDriver<SystemClock> for LinuxCan
source§fn try_reserve(&mut self, _frames: usize) -> Result<(), OutOfMemoryError>
fn try_reserve(&mut self, _frames: usize) -> Result<(), OutOfMemoryError>
Attempts to reserve space to transmit
frames
additional frames Read moresource§fn transmit(
&mut self,
frame: Frame<Microseconds64>,
clock: &mut SystemClock
) -> Result<Option<Frame<Microseconds64>>, Self::Error>
fn transmit( &mut self, frame: Frame<Microseconds64>, clock: &mut SystemClock ) -> Result<Option<Frame<Microseconds64>>, Self::Error>
Attempts to send a frame without blocking Read more