pub struct SensorBytes<'a> {
pub bytes: &'a [u8],
pub truncation: Option<Truncation>,
}Expand description
Sensor bytes of one unit, as resolved by DecodeContext::sensor_bytes.
Fields§
§bytes: &'a [u8]The unit’s bytes: all needed bytes, or (recover policy only) what the file has.
truncation: Option<Truncation>Set when the unit is truncated (recover policy only): report it with
DecodeContext::recovered once the samples it lacks are known.
Implementations§
Source§impl<'a> SensorBytes<'a>
impl<'a> SensorBytes<'a>
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
True when the unit is complete.
Trait Implementations§
Source§impl<'a> Clone for SensorBytes<'a>
impl<'a> Clone for SensorBytes<'a>
Auto Trait Implementations§
impl<'a> Freeze for SensorBytes<'a>
impl<'a> RefUnwindSafe for SensorBytes<'a>
impl<'a> Send for SensorBytes<'a>
impl<'a> Sync for SensorBytes<'a>
impl<'a> Unpin for SensorBytes<'a>
impl<'a> UnsafeUnpin for SensorBytes<'a>
impl<'a> UnwindSafe for SensorBytes<'a>
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