#[non_exhaustive]pub struct SessionInfo {
pub chip: Chip,
pub crate_version: [u8; 3],
pub timestamp_us: u64,
pub epoch_unix_us: Option<u64>,
}Expand description
Session announcement: what a host needs to interpret the frames that follow it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chip: ChipThe chip that delivers the frames.
crate_version: [u8; 3]Version of the crate that encoded the frames: major, minor, patch.
timestamp_us: u64The node’s receive clock at the moment of the announcement, on the same time base as
RxMeta::timestamp_us.
epoch_unix_us: Option<u64>Wall-clock time (UNIX epoch, microseconds) corresponding to timestamp_us, when the
controller supplied one.
Implementations§
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
impl Copy for SessionInfo
Source§impl Debug for SessionInfo
impl Debug for SessionInfo
Source§impl<'de> Deserialize<'de> for SessionInfo
impl<'de> Deserialize<'de> for SessionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionInfo
Source§impl MaxSize for SessionInfo
impl MaxSize for SessionInfo
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for SessionInfo
impl PartialEq for SessionInfo
Source§impl Serialize for SessionInfo
impl Serialize for SessionInfo
impl StructuralPartialEq for SessionInfo
Auto Trait Implementations§
impl Freeze for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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