pub enum Signal {
Show 18 variants
KeyDown {
keyboard: Address,
char: u32,
code: u32,
player: String,
},
KeyUp {
keyboard: Address,
char: u32,
code: u32,
player: String,
},
Clipboard {
keyboard: Address,
text: String,
player: String,
},
Touch {
screen: Address,
x: Number,
y: Number,
button: i64,
player: String,
},
Drag {
screen: Address,
x: Number,
y: Number,
button: i64,
player: String,
},
Drop {
screen: Address,
x: Number,
y: Number,
button: i64,
player: String,
},
Scroll {
screen: Address,
x: Number,
y: Number,
direction: i64,
player: String,
},
Walk {
screen: Address,
x: Number,
y: Number,
player: Option<String>,
},
ComponentAdded {
address: Address,
kind: String,
},
ComponentRemoved {
address: Address,
kind: String,
},
ComponentAvailable {
kind: String,
},
ComponentUnavailable {
kind: String,
},
RedstoneChanged {
address: Address,
side: i64,
old: i64,
new: i64,
color: Option<i64>,
},
Motion {
address: Address,
x: Number,
y: Number,
z: Number,
entity: Option<String>,
},
ModemMessage {
receiver: Address,
sender: Address,
port: i64,
distance: Number,
data: Vec<Value>,
},
InventoryChanged {
slot: i64,
},
PatternRequest {
provider: Address,
job: i64,
pattern: i64,
},
Other {
name: String,
args: Vec<Value>,
},
}Expand description
A signal, decoded when it is one of OpenComputers’ standard ones.
Variants§
KeyDown
KeyUp
Clipboard
Touch
Drag
Drop
Scroll
Walk
ComponentAdded
ComponentRemoved
ComponentAvailable
RedstoneChanged
Motion
ModemMessage
InventoryChanged
PatternRequest
A Computer Pattern Provider (AE2) was handed the inputs for a job;
see crate::pattern_provider. pattern is the pattern’s index, from 1.
Other
Anything else, as sent.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Forget for Signal
impl Freeze for Signal
impl Move for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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