pub struct SecondScreen {
pub id: String,
pub device_id: String,
pub synced_content: String,
pub sync_offset: f64,
pub interactive_layer: BTreeMap<String, String>,
}Expand description
Second screen companion app.
Fields§
§id: String§device_id: String§synced_content: String§sync_offset: f64§interactive_layer: BTreeMap<String, String>Implementations§
Source§impl SecondScreen
impl SecondScreen
Sourcepub fn sync_to_content(&mut self, content_id: &str, offset: f64)
pub fn sync_to_content(&mut self, content_id: &str, offset: f64)
Syncs the companion to content_id at offset seconds.
Sourcepub fn add_interactive_layer(&mut self, key: &str, value: &str)
pub fn add_interactive_layer(&mut self, key: &str, value: &str)
Adds a key/value interactive layer.
Trait Implementations§
Source§impl Clone for SecondScreen
impl Clone for SecondScreen
Auto Trait Implementations§
impl Freeze for SecondScreen
impl RefUnwindSafe for SecondScreen
impl Send for SecondScreen
impl Sync for SecondScreen
impl Unpin for SecondScreen
impl UnsafeUnpin for SecondScreen
impl UnwindSafe for SecondScreen
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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