pub struct SyncObject { /* private fields */ }Expand description
Represents a SYNC object/message
A single CAN node can serve as the SYNC provider, sending a periodic sync object to all other nodes. When used, the one byte count value starts at 1, and increments. On overflow, it should be reset to
- It is optional, and when not provided the sync message DLC will be zero.
Implementations§
Trait Implementations§
Source§impl Clone for SyncObject
impl Clone for SyncObject
Source§fn clone(&self) -> SyncObject
fn clone(&self) -> SyncObject
Returns a duplicate 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 SyncObject
impl Debug for SyncObject
Source§impl Default for SyncObject
impl Default for SyncObject
Source§fn default() -> SyncObject
fn default() -> SyncObject
Returns the “default value” for a type. Read more
Source§impl From<CanMessage> for SyncObject
impl From<CanMessage> for SyncObject
Source§fn from(msg: CanMessage) -> Self
fn from(msg: CanMessage) -> Self
Converts to this type from the input type.
Source§impl From<SyncObject> for CanMessage
impl From<SyncObject> for CanMessage
Source§fn from(value: SyncObject) -> Self
fn from(value: SyncObject) -> Self
Converts to this type from the input type.
impl Copy for SyncObject
Auto Trait Implementations§
impl Freeze for SyncObject
impl RefUnwindSafe for SyncObject
impl Send for SyncObject
impl Sync for SyncObject
impl Unpin for SyncObject
impl UnwindSafe for SyncObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more