pub struct PcmDocument<'a> {
pub samples: PcmSamples<'a>,
pub timing: Timing,
pub stream_id: u32,
pub channels: u32,
pub channel_order: &'a str,
pub purpose: &'a str,
pub quantity: PcmQuantity,
pub relation: SignalRelation,
pub units_per_stored_sample: f64,
pub stored_offset: f64,
pub provenance: Provenance<'a>,
pub original: Option<&'a [u8]>,
}Fields§
§samples: PcmSamples<'a>§timing: Timing§stream_id: u32§channels: u32§channel_order: &'a str§purpose: &'a str§quantity: PcmQuantity§relation: SignalRelation§units_per_stored_sample: f64§stored_offset: f64§provenance: Provenance<'a>§original: Option<&'a [u8]>Implementations§
Source§impl PcmDocument<'_>
impl PcmDocument<'_>
Sourcepub fn encode_into(
&self,
buffers: WriteBuffers<'_>,
scratch: &mut Scratch<'_>,
output: &mut [u8],
options: WriteOptions,
) -> Result<usize, Error>
pub fn encode_into( &self, buffers: WriteBuffers<'_>, scratch: &mut Scratch<'_>, output: &mut [u8], options: WriteOptions, ) -> Result<usize, Error>
Metadata, payload and file staging are caller-owned. On every failure the entire final output is unchanged; source slices are never modified. Original bytes become a bound opaque source entry, not a replacement for PCM samples.
Trait Implementations§
Source§impl<'a> Clone for PcmDocument<'a>
impl<'a> Clone for PcmDocument<'a>
impl<'a> Copy for PcmDocument<'a>
Auto Trait Implementations§
impl<'a> Freeze for PcmDocument<'a>
impl<'a> RefUnwindSafe for PcmDocument<'a>
impl<'a> Send for PcmDocument<'a>
impl<'a> Sync for PcmDocument<'a>
impl<'a> Unpin for PcmDocument<'a>
impl<'a> UnsafeUnpin for PcmDocument<'a>
impl<'a> UnwindSafe for PcmDocument<'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