pub struct CueStack {
pub id: String,
pub name: String,
pub cues: Vec<Cue>,
pub current_index: usize,
pub auto_follow: bool,
}Expand description
A cue stack — ordered sequence of cues for a show.
Fields§
§id: String§name: String§cues: Vec<Cue>§current_index: usize§auto_follow: boolImplementations§
Source§impl CueStack
impl CueStack
Sourcepub fn new(id: &str, name: &str) -> Self
pub fn new(id: &str, name: &str) -> Self
Creates an empty cue stack positioned before the first cue.
Sourcepub fn go(&mut self, universes: &mut BTreeMap<u16, DmxUniverse>) -> bool
pub fn go(&mut self, universes: &mut BTreeMap<u16, DmxUniverse>) -> bool
Advances to the next cue and applies its channel values to universes; false at the end.
Sourcepub fn go_back(&mut self) -> bool
pub fn go_back(&mut self) -> bool
Steps back one cue (does not re-apply values); false at the start.
Sourcepub fn current_cue(&self) -> Option<&Cue>
pub fn current_cue(&self) -> Option<&Cue>
The cue at the current position, or None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CueStack
impl RefUnwindSafe for CueStack
impl Send for CueStack
impl Sync for CueStack
impl Unpin for CueStack
impl UnsafeUnpin for CueStack
impl UnwindSafe for CueStack
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