pub struct EventLoopAttributes {
pub update_interval: EventInterval,
pub redraw_request_interval: EventInterval,
}Available on Windows only.
Fields§
§update_interval: EventIntervalDefines an interval between Process::Update events.
The event is disabled if an interval or rate is 0.
The default is EventInteval::UpdatesPerSecond(50u32).
redraw_request_interval: EventIntervalDefines an interval between Window::Redraw requests.
The event is disabled if an interval or rate is 0.
The default is EventInteval::UpdatesPerSecond(0u32)
(disabled).
Implementations§
Source§impl EventLoopAttributes
impl EventLoopAttributes
pub fn new() -> EventLoopAttributes
Trait Implementations§
Source§impl Clone for EventLoopAttributes
impl Clone for EventLoopAttributes
Source§fn clone(&self) -> EventLoopAttributes
fn clone(&self) -> EventLoopAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventLoopAttributes
impl RefUnwindSafe for EventLoopAttributes
impl Send for EventLoopAttributes
impl Sync for EventLoopAttributes
impl Unpin for EventLoopAttributes
impl UnwindSafe for EventLoopAttributes
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