#[non_exhaustive]pub struct ServerControls {
pub can_record: bool,
pub can_stop: bool,
pub rev: u64,
pub record_unavailable: Option<RecordUnavailable>,
}Expand description
A person’s Record and Stop in the call’s room, as Sew computes them
(Call::recording_controls, CallEvent::RecordingControls,
CallRecording::my_controls). Of two values, the larger rev is the newer. Sew still
decides each Record and Stop; show its refusal if one comes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.can_record: boolSew would take this person’s Record now.
can_stop: boolSew would take this person’s Stop now.
rev: u64The value’s revision (server-wide, increasing).
While the person may record: why a start would be refused for now (the install’s recording capacity is full, or the recorder does not answer). A hint only.
Implementations§
Source§impl ServerControls
impl ServerControls
Sourcepub fn from_sew(c: &RecordingControls) -> ServerControls
pub fn from_sew(c: &RecordingControls) -> ServerControls
The value Sew sent.
Sourcepub fn new(can_record: bool, can_stop: bool) -> ServerControls
pub fn new(can_record: bool, can_stop: bool) -> ServerControls
The pair, with rev 0 and no hint (for a host’s own engine or a test).
Trait Implementations§
Source§impl Clone for ServerControls
impl Clone for ServerControls
impl Copy for ServerControls
Source§impl Debug for ServerControls
impl Debug for ServerControls
Source§impl Default for ServerControls
impl Default for ServerControls
impl Eq for ServerControls
Source§impl PartialEq for ServerControls
impl PartialEq for ServerControls
Source§impl Serialize for ServerControls
impl Serialize for ServerControls
impl StructuralPartialEq for ServerControls
Auto Trait Implementations§
impl Forget for ServerControls
impl Freeze for ServerControls
impl Move for ServerControls
impl RefUnwindSafe for ServerControls
impl Send for ServerControls
impl Sync for ServerControls
impl Unpin for ServerControls
impl UnsafeUnpin for ServerControls
impl UnwindSafe for ServerControls
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<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<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> ⓘ
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