pub struct IqPacketView<'a> {
pub header: IqHeader,
/* private fields */
}Expand description
Non-mutating zero-copy view over an admitted mode 0x0105 record preserving original bits.
Fields§
§header: IqHeaderImplementations§
Source§impl<'a> IqPacketView<'a>
impl<'a> IqPacketView<'a>
pub fn parse(bytes: &'a [u8], valid: bool) -> Result<Option<Self>, Error>
Sourcepub fn raw_sample_bytes(&self) -> &'a [u8] ⓘ
pub fn raw_sample_bytes(&self) -> &'a [u8] ⓘ
Returns exact unmodified IEEE-754 little-endian (I, Q) sample payload bytes.
pub fn raw_sample(&self, index: u32) -> Result<(f64, f64), Error>
pub fn calibrated_sample(&self, index: u32) -> Result<(f64, f64), Error>
pub fn extract_interleaved( &self, apply_scale: bool, out: &mut [(f64, f64)], ) -> Result<usize, Error>
pub fn extract_split( &self, apply_scale: bool, out_i: &mut [f64], out_q: &mut [f64], ) -> Result<usize, Error>
Sourcepub fn validate_against_blocks(
&self,
ext: Block<'_>,
acq: Block<'_>,
cal: Block<'_>,
raw_count_mode: bool,
) -> Result<(), Error>
pub fn validate_against_blocks( &self, ext: Block<'_>, acq: Block<'_>, cal: Block<'_>, raw_count_mode: bool, ) -> Result<(), Error>
Verifies record metadata binding against Acquisition (136) and Calibration (107) blocks,
checking channel bounds, carrier consistency, tick validity [from, until), and sample scale.
Trait Implementations§
Source§impl<'a> Clone for IqPacketView<'a>
impl<'a> Clone for IqPacketView<'a>
impl<'a> Copy for IqPacketView<'a>
Auto Trait Implementations§
impl<'a> Freeze for IqPacketView<'a>
impl<'a> RefUnwindSafe for IqPacketView<'a>
impl<'a> Send for IqPacketView<'a>
impl<'a> Sync for IqPacketView<'a>
impl<'a> Unpin for IqPacketView<'a>
impl<'a> UnsafeUnpin for IqPacketView<'a>
impl<'a> UnwindSafe for IqPacketView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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