Enum pty_proc::shell::device::control::operate::Operate
[−]
[src]
pub enum Operate {
Mouse(Mouse),
Key(Key),
}Variants
Mouse(Mouse)The mouse operate.
Key(Key)The key operate.
Methods
impl Operate[src]
pub fn new(buf: In, len: size_t) -> Self[src]
The constructor method new returns evaluated Operate.
pub fn is_mouse(&self) -> Option<Mouse>[src]
The accessor method is_mouse returns a Option for the Mouse Operate.
pub fn is_key(&self) -> Option<Key>[src]
The accessor method is_key returns a Option for the Key Operate.
pub fn as_input(&self) -> (In, size_t)[src]
Trait Implementations
impl Clone for Operate[src]
fn clone(&self) -> Operate[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Operate[src]
impl Debug for Operate[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more