pub struct ReplayToolbar<'a> { /* private fields */ }Expand description
Replay toolbar widget
Implementations§
Source§impl<'a> ReplayToolbar<'a>
impl<'a> ReplayToolbar<'a>
Sourcepub fn new(state: &'a ReplayToolbarState) -> Self
pub fn new(state: &'a ReplayToolbarState) -> Self
Create a new replay toolbar
Sourcepub fn with_config(self, config: ReplayToolbarConfig) -> Self
pub fn with_config(self, config: ReplayToolbarConfig) -> Self
Set configuration
Sourcepub fn with_command_sender(self, sender: &'a Sender<ReplayCommand>) -> Self
pub fn with_command_sender(self, sender: &'a Sender<ReplayCommand>) -> Self
Set command sender for direct control
Sourcepub fn show(&self, ui: &mut Ui) -> Option<ReplayToolbarAction>
pub fn show(&self, ui: &mut Ui) -> Option<ReplayToolbarAction>
Show the toolbar and return any action
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ReplayToolbar<'a>
impl<'a> RefUnwindSafe for ReplayToolbar<'a>
impl<'a> Send for ReplayToolbar<'a>
impl<'a> Sync for ReplayToolbar<'a>
impl<'a> Unpin for ReplayToolbar<'a>
impl<'a> UnsafeUnpin for ReplayToolbar<'a>
impl<'a> UnwindSafe for ReplayToolbar<'a>
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
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