pub struct Stream {
pub pump: Pump,
pub sink: Sink,
pub texture: Option<TextureHandle>,
pub name: String,
}Expand description
A running camera pump plus an egui::TextureHandle that is refreshed
each time update_texture is called.
Obtained from spawn. All fields are public, data-oriented, no methods.
Fields§
§pump: PumpThe underlying pump. Pass by reference to set_active,
capture_frame, or stop_and_join to drive the pump.
sink: SinkShared slot the pump writes each frame into. Cleared by
update_texture once the frame is uploaded.
texture: Option<TextureHandle>The egui texture the frame is uploaded to. None until the first
frame arrives.
name: StringName the texture is registered under in egui’s texture cache.
Auto Trait Implementations§
impl Freeze for Stream
impl !RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl !UnwindSafe 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