Enum neko::prelude::DeviceState
[−]
pub enum DeviceState { Proc((i32, [u8; 32])), Idle, Sig(i32), OutText(Out, usize), InText(Control), }
Variants
Proc((i32, [u8; 32]))
The current task.
Idle
Update.
Sig(i32)
As catched a signal.
OutText(Out, usize)
The output of new lines.
InText(Control)
The current character.
Methods
impl DeviceState
fn from_task(name: (i32, [u8; 32])) -> DeviceState
The constructor method from_task
returns a Process' event.
fn from_idle() -> DeviceState
The constructor method from_idle
returns a Update's event.
fn from_out(buf: Out, len: usize) -> DeviceState
The constructor method from_out
returns a text Output's event.
fn from_in(buf: In, len: usize) -> DeviceState
The constructor method from_out
returns a key Input's event.
fn from_sig(sig: i32) -> DeviceState
The constructor method from_ig
returns a Signal's event.
fn is_task(self) -> Option<(i32, [u8; 32])>
The accessor method is_task
returns a Process' event.
fn is_idle(&self) -> Option<()>
The accessor method is_idle
returns a Option for Update's event.
fn is_out_text(&self) -> Option<(Out, usize)>
The accessor method is_out_text
returns a Option for Ouput's event.
fn is_input(&self) -> Option<Control>
The accessor method is_input
returns a Option for key
or mouse Input's event.
fn is_signal(&self) -> Option<i32>
The accessor method is_signal
returns a Option for Signal's event.
Trait Implementations
impl Copy for DeviceState
impl Debug for DeviceState
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for DeviceState
fn clone(&self) -> DeviceState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more