pub(crate) struct AudioUpdate<'a> {
pub(crate) audio_mp3: &'a [u8],
pub(crate) ended_at: DateTime<Utc>,
pub(crate) frame_count: i32,
pub(crate) dstar_text: Option<&'a str>,
pub(crate) dprs_lat: Option<f64>,
pub(crate) dprs_lon: Option<f64>,
}Expand description
Parameters for updating a stream after voice capture and MP3 encoding complete.
Groups the audio blob, timing, and optional slow-data fields into a single struct to stay within clippy’s argument-count limit.
Fields§
§audio_mp3: &'a [u8]Encoded MP3 audio bytes.
ended_at: DateTime<Utc>When the stream ended (EOT or timeout).
frame_count: i32Total number of voice frames captured.
dstar_text: Option<&'a str>Slow-data text message decoded from voice frames.
dprs_lat: Option<f64>DPRS latitude, if a position report was embedded.
dprs_lon: Option<f64>DPRS longitude, if a position report was embedded.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AudioUpdate<'a>
impl<'a> RefUnwindSafe for AudioUpdate<'a>
impl<'a> Send for AudioUpdate<'a>
impl<'a> Sync for AudioUpdate<'a>
impl<'a> Unpin for AudioUpdate<'a>
impl<'a> UnwindSafe for AudioUpdate<'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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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