pub struct MotionPlugin;Expand description
Installs the Motion animation assets in an Autumn app.
use autumn_plugin_motion::MotionPlugin;
autumn_web::app()
.plugin(MotionPlugin::new())
.run()
.await;Then include motion_script in the page and
animate with Motion or raw data-motion attributes.
Implementations§
Source§impl MotionPlugin
impl MotionPlugin
Trait Implementations§
Source§impl Debug for MotionPlugin
impl Debug for MotionPlugin
Source§impl Default for MotionPlugin
impl Default for MotionPlugin
Source§impl Plugin for MotionPlugin
impl Plugin for MotionPlugin
Source§fn name(&self) -> Cow<'static, str>
fn name(&self) -> Cow<'static, str>
Stable identifier used for duplicate-registration detection. Read more
Source§fn build(self, app: AppBuilder) -> AppBuilder
fn build(self, app: AppBuilder) -> AppBuilder
Apply this plugin’s configuration to the builder. Read more
Auto Trait Implementations§
impl Forget for MotionPlugin
impl Freeze for MotionPlugin
impl RefUnwindSafe for MotionPlugin
impl Send for MotionPlugin
impl Sync for MotionPlugin
impl Unpin for MotionPlugin
impl UnsafeUnpin for MotionPlugin
impl UnwindSafe for MotionPlugin
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<P> Plugins for Pwhere
P: Plugin,
impl<P> Plugins for Pwhere
P: Plugin,
Source§fn apply(self, app: AppBuilder) -> AppBuilder
fn apply(self, app: AppBuilder) -> AppBuilder
Apply every plugin in this bundle to the builder, in declaration order.
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.