Struct redblocks::Widget[][src]

pub struct Widget {
    pub content: Box<dyn Update>,
    pub intervel: Duration,
    pub elapsed: Instant,
}
Expand description

Handles timing and calling updates for plugins

Fields

content: Box<dyn Update>

holds the plugin

intervel: Duration

the update interval

elapsed: Instant

when the last update was preformed

Implementations

keep the interval to above 500ms as this is the sleep duration for the main event loop

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.