#[non_exhaustive]pub enum RecordingTrigger {
Manual = 0,
Auto = 1,
Required = 2,
Unknown = 65_535,
}Expand description
Sew’s recording types the engine’s recording API carries (from sew-proto).
What started a recording. Stored in recordings.trigger.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Manual = 0
A person pressed Record (the start route).
Auto = 1
An auto-record room’s first join.
Required = 2
The room reached two people while recording is required.
Unknown = 65_535
A value this build does not know, sent by a newer peer. The server never sends it.
Its discriminant is always
UNKNOWN_DISCRIMINANT.
Implementations§
Source§impl RecordingTrigger
impl RecordingTrigger
Sourcepub const ALL: &'static [RecordingTrigger]
pub const ALL: &'static [RecordingTrigger]
Every known value in wire order, without Unknown.
Sourcepub fn from_wire(s: &str) -> Option<RecordingTrigger>
pub fn from_wire(s: &str) -> Option<RecordingTrigger>
Parses a wire string. Strings this build does not know give None.
Sourcepub const fn is_unknown(self) -> bool
pub const fn is_unknown(self) -> bool
Whether this is the forward-compat Unknown value.
Source§impl RecordingTrigger
impl RecordingTrigger
Sourcepub const fn from_auto(auto: bool) -> RecordingTrigger
pub const fn from_auto(auto: bool) -> RecordingTrigger
The trigger of a recording known only by its auto flag (rows written before
triggers existed): auto or manual.
Sourcepub const fn is_automatic(self) -> bool
pub const fn is_automatic(self) -> bool
Whether the recording started without anyone pressing Record (auto or required).
Trait Implementations§
Source§impl Clone for RecordingTrigger
impl Clone for RecordingTrigger
Source§fn clone(&self) -> RecordingTrigger
fn clone(&self) -> RecordingTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RecordingTrigger
Source§impl Debug for RecordingTrigger
impl Debug for RecordingTrigger
Source§impl Default for RecordingTrigger
manual: what a payload without trigger reads as.
impl Default for RecordingTrigger
manual: what a payload without trigger reads as.
Source§fn default() -> RecordingTrigger
fn default() -> RecordingTrigger
Source§impl<'de> Deserialize<'de> for RecordingTrigger
impl<'de> Deserialize<'de> for RecordingTrigger
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordingTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordingTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for RecordingTrigger
impl Display for RecordingTrigger
impl Eq for RecordingTrigger
Source§impl Hash for RecordingTrigger
impl Hash for RecordingTrigger
Source§impl JsonSchema for RecordingTrigger
impl JsonSchema for RecordingTrigger
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RecordingTrigger
impl PartialEq for RecordingTrigger
Source§impl Serialize for RecordingTrigger
impl Serialize for RecordingTrigger
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RecordingTrigger
Auto Trait Implementations§
impl Forget for RecordingTrigger
impl Freeze for RecordingTrigger
impl Move for RecordingTrigger
impl RefUnwindSafe for RecordingTrigger
impl Send for RecordingTrigger
impl Sync for RecordingTrigger
impl Unpin for RecordingTrigger
impl UnsafeUnpin for RecordingTrigger
impl UnwindSafe for RecordingTrigger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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