Struct ActivityTimeline
pub struct ActivityTimeline { /* private fields */ }Implementations§
§impl ActivityTimeline
impl ActivityTimeline
pub fn cues(&self) -> impl Iterator<Item = &ActivityCue>
pub fn cues(&self) -> impl Iterator<Item = &ActivityCue>
All scheduled cues.
pub fn cue(&self, joint: u64) -> Option<ActivityCue>
pub fn cue(&self, joint: u64) -> Option<ActivityCue>
Cue for joint joint.
pub fn validate(&self) -> Result<(), ActivityError>
pub fn validate(&self) -> Result<(), ActivityError>
Validates the timeline; ActivityError on violation.
pub fn schedule(&mut self, cue: ActivityCue) -> Result<bool, ActivityError>
pub fn schedule(&mut self, cue: ActivityCue) -> Result<bool, ActivityError>
An accepted event token is idempotent for its actor, including after finishing. A newer actor activity replaces the preceding visual cue.
pub fn advance_into(
&mut self,
dt: f64,
completed: &mut [ActivityCue],
) -> Result<usize, ActivityError>
pub fn advance_into( &mut self, dt: f64, completed: &mut [ActivityCue], ) -> Result<usize, ActivityError>
Outputs only newly completed cues. A fixed caller buffer covers the worst case so invalid capacity/duration never partially advances time.
Trait Implementations§
§impl Clone for ActivityTimeline
impl Clone for ActivityTimeline
§fn clone(&self) -> ActivityTimeline
fn clone(&self) -> ActivityTimeline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Default for ActivityTimeline
impl Default for ActivityTimeline
§fn default() -> ActivityTimeline
fn default() -> ActivityTimeline
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ActivityTimeline
impl<'de> Deserialize<'de> for ActivityTimeline
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivityTimeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivityTimeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for ActivityTimeline
impl Serialize for ActivityTimeline
§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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ActivityTimeline
impl RefUnwindSafe for ActivityTimeline
impl Send for ActivityTimeline
impl Sync for ActivityTimeline
impl Unpin for ActivityTimeline
impl UnsafeUnpin for ActivityTimeline
impl UnwindSafe for ActivityTimeline
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