pub struct SessionStreams {
pub camera: bool,
pub screen: bool,
pub microphone: bool,
pub system_audio: bool,
}Expand description
Which streams the user enabled at session-start time. Doesn’t
own the actual pipeline handles — those stay in their existing
Tauri-managed State<> wrappers; the session just remembers
which channels to start + stop together.
Fields§
§camera: booltrue if the camera channel should participate in this
session.
screen: booltrue if the screen-capture channel should participate.
microphone: booltrue if the microphone channel should participate.
system_audio: booltrue if the system-audio channel should participate.
Implementations§
Source§impl SessionStreams
impl SessionStreams
Sourcepub fn any_enabled(self) -> bool
pub fn any_enabled(self) -> bool
true if at least one channel is enabled. M-RECORD.1’s
start_recording rejects sessions with no streams selected.
Sourcepub fn enabled_kinds(self) -> impl Iterator<Item = StreamKind>
pub fn enabled_kinds(self) -> impl Iterator<Item = StreamKind>
Iterate over the enabled StreamKinds in canonical order
(camera → screen → microphone → system audio). Used by
M-RECORD.1’s status assembler to walk the per-channel
State<> handles in a deterministic order.
Trait Implementations§
Source§impl Clone for SessionStreams
impl Clone for SessionStreams
Source§fn clone(&self) -> SessionStreams
fn clone(&self) -> SessionStreams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionStreams
impl Debug for SessionStreams
Source§impl Default for SessionStreams
impl Default for SessionStreams
Source§fn default() -> SessionStreams
fn default() -> SessionStreams
Source§impl<'de> Deserialize<'de> for SessionStreams
impl<'de> Deserialize<'de> for SessionStreams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SessionStreams
impl PartialEq for SessionStreams
Source§fn eq(&self, other: &SessionStreams) -> bool
fn eq(&self, other: &SessionStreams) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionStreams
impl Serialize for SessionStreams
impl Copy for SessionStreams
impl Eq for SessionStreams
impl StructuralPartialEq for SessionStreams
Auto Trait Implementations§
impl Freeze for SessionStreams
impl RefUnwindSafe for SessionStreams
impl Send for SessionStreams
impl Sync for SessionStreams
impl Unpin for SessionStreams
impl UnsafeUnpin for SessionStreams
impl UnwindSafe for SessionStreams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().