pub struct Stream {
pub body: Box<dyn AsyncRead + Send + Unpin>,
pub format: Format,
pub start_sample: i64,
pub live: bool,
}Expand description
An open audio stream.
Fields§
§body: Box<dyn AsyncRead + Send + Unpin>§format: Format§start_sample: i64The 48 kHz sample (per channel) where body starts. A source that
honoured a seek in Playable::open sets this to the real start; a
source that ignored it leaves 0 and the player skips forward itself.
live: boolWhether the stream has no end (internet radio, live).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Stream
impl !Sync for Stream
impl !UnwindSafe for Stream
impl Freeze for Stream
impl Send for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
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