pub enum PluginEnv {
Client,
Server,
Both,
}
Expand description
The environments a plugin can run in. These will affect Wasm bundle size.
Variants§
Client
The plugin should only run on the client-side, and will be included in
the final Wasm binary. More specifically, the plugin will only be
included if the target architecture is wasm32
.
Server
The plugin should only run on the server-side (this includes tinker-time and the build process), and will NOT be included in the final Wasm binary. This will decrease binary sizes, and should be preferred in most cases.
Both
The plugin will ruin everywhere, and will be included in the final Wasm binary.
Trait Implementations§
source§impl PartialEq<PluginEnv> for PluginEnv
impl PartialEq<PluginEnv> for PluginEnv
impl Eq for PluginEnv
impl StructuralEq for PluginEnv
impl StructuralPartialEq for PluginEnv
Auto Trait Implementations§
impl RefUnwindSafe for PluginEnv
impl Send for PluginEnv
impl Sync for PluginEnv
impl Unpin for PluginEnv
impl UnwindSafe for PluginEnv
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.