pub enum Event {
Show 19 variants
Init {
id: RequestId,
config: Value,
},
Stop {
id: RequestId,
},
Bootstrap {
omegga: Value,
},
PluginPlayersRaw {
players: Vec<Player>,
},
PluginEmit {
id: RequestId,
event: String,
from: String,
args: Vec<Value>,
},
Line(String),
Start {
map: String,
},
Host {
name: String,
id: String,
},
Version(Value),
Unauthorized,
Join(Player),
Leave(Player),
Command {
player: String,
command: String,
args: Vec<String>,
},
ChatCommand {
player: String,
command: String,
args: Vec<String>,
},
Chat {
player: String,
message: String,
},
MapChange(String),
Interact(BrickInteraction),
Event {
name: String,
player: Player,
args: Vec<String>,
},
Autorestart(Value),
}
Variants
Init
Stop
Fields
id: RequestId
Bootstrap
Fields
omegga: Value
PluginPlayersRaw
PluginEmit
Line(String)
Start
Fields
map: String
Host
Version(Value)
Unauthorized
Join(Player)
Leave(Player)
Command
ChatCommand
Chat
MapChange(String)
Interact(BrickInteraction)
Event
Autorestart(Value)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more