pub enum PluginLoaderMatch {
Vanilla,
Bukkit,
Paper,
Sponge,
CraftBukkit,
Spigot,
Glowstone,
Pufferfish,
Purpur,
Folia,
}
Expand description
Matcher for different types of server plugin loaders
Variants§
Vanilla
The default game with no plugin support
Bukkit
Matches any server that can load Bukkit plugins
Paper
Matches Paper server
Sponge
Matches Sponge
CraftBukkit
Matches CraftBukkit
Spigot
Matches Spigot
Glowstone
Matches Glowstone
Pufferfish
Matches Pufferfish
Purpur
Matches Purpur
Folia
Matches Folia
Implementations§
source§impl PluginLoaderMatch
impl PluginLoaderMatch
sourcepub fn parse_from_str(string: &str) -> Option<Self>
pub fn parse_from_str(string: &str) -> Option<Self>
Parse a PluginLoaderMatch from a string
sourcepub fn matches(&self, other: &ServerType) -> bool
pub fn matches(&self, other: &ServerType) -> bool
Checks if a plugin loader matches
Trait Implementations§
source§impl Clone for PluginLoaderMatch
impl Clone for PluginLoaderMatch
source§fn clone(&self) -> PluginLoaderMatch
fn clone(&self) -> PluginLoaderMatch
Returns a copy 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 moresource§impl Debug for PluginLoaderMatch
impl Debug for PluginLoaderMatch
source§impl<'de> Deserialize<'de> for PluginLoaderMatch
impl<'de> Deserialize<'de> for PluginLoaderMatch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PluginLoaderMatch
impl PartialEq for PluginLoaderMatch
source§fn eq(&self, other: &PluginLoaderMatch) -> bool
fn eq(&self, other: &PluginLoaderMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PluginLoaderMatch
impl Serialize for PluginLoaderMatch
impl Eq for PluginLoaderMatch
impl StructuralEq for PluginLoaderMatch
impl StructuralPartialEq for PluginLoaderMatch
Auto Trait Implementations§
impl RefUnwindSafe for PluginLoaderMatch
impl Send for PluginLoaderMatch
impl Sync for PluginLoaderMatch
impl Unpin for PluginLoaderMatch
impl UnwindSafe for PluginLoaderMatch
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