pub struct ThreePlugin;Expand description
Installs the Three.js assets in an Autumn app.
use autumn_plugin_three::ThreePlugin;
autumn_web::app()
.plugin(ThreePlugin::new())
.run()
.await;Then put three_script and
three_stylesheet in the page <head>.
Implementations§
Source§impl ThreePlugin
impl ThreePlugin
Trait Implementations§
Source§impl Debug for ThreePlugin
impl Debug for ThreePlugin
Source§impl Default for ThreePlugin
impl Default for ThreePlugin
Source§impl Plugin for ThreePlugin
impl Plugin for ThreePlugin
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 ThreePlugin
impl Freeze for ThreePlugin
impl RefUnwindSafe for ThreePlugin
impl Send for ThreePlugin
impl Sync for ThreePlugin
impl Unpin for ThreePlugin
impl UnsafeUnpin for ThreePlugin
impl UnwindSafe for ThreePlugin
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.