pub struct EditorSession {
player: EditorPlayer,
}Expand description
The editor’s playhead clock for one open clip.
Fields§
§player: EditorPlayerImplementations§
Source§impl EditorSession
impl EditorSession
Sourcepub fn new(fps: u32, duration_frames: u64) -> Self
pub fn new(fps: u32, duration_frames: u64) -> Self
A session for a project of duration_frames at fps.
Sourcepub fn apply(&mut self, action: TransportAction) -> EditorStatusView
pub fn apply(&mut self, action: TransportAction) -> EditorStatusView
Apply a transport action and return the resulting status.
Sourcepub fn status(&self) -> EditorStatusView
pub fn status(&self) -> EditorStatusView
Current playhead status.
Auto Trait Implementations§
impl Freeze for EditorSession
impl RefUnwindSafe for EditorSession
impl Send for EditorSession
impl Sync for EditorSession
impl Unpin for EditorSession
impl UnsafeUnpin for EditorSession
impl UnwindSafe for EditorSession
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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