pub struct EventLoop<A: ActionExt> {
pub binds: BindMap<A>,
/* private fields */
}Fields§
§binds: BindMap<A>Implementations§
Source§impl<A: ActionExt> EventLoop<A>
impl<A: ActionExt> EventLoop<A>
pub fn new() -> Self
pub fn with_binds(binds: BindMap<A>) -> Self
pub fn with_tick_rate(self, tick_rate: u8) -> Self
pub fn add_tx( &mut self, handler: UnboundedSender<RenderCommand<A>>, ) -> &mut Self
pub fn with_mouse_events(self) -> Self
pub fn clear_txs(&mut self)
pub fn get_controller(&self) -> UnboundedSender<Event>
pub fn binds(&mut self, binds: BindMap<A>) -> &mut Self
pub async fn run(&mut self) -> Result<()>
pub fn print_key(&self, key_combination: KeyCombination) -> String
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for EventLoop<A>
impl<A> RefUnwindSafe for EventLoop<A>where
A: RefUnwindSafe,
impl<A> Send for EventLoop<A>
impl<A> Sync for EventLoop<A>
impl<A> Unpin for EventLoop<A>
impl<A> UnsafeUnpin for EventLoop<A>
impl<A> UnwindSafe for EventLoop<A>where
A: RefUnwindSafe,
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformExt for T
impl<T> TransformExt for T
fn transform<Q>(self, transform: impl FnOnce(T) -> Q) -> Q
fn modify<Q>(self, modify: impl FnOnce(&mut T) -> Q) -> T
Source§fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
Example Read more