Struct pty_proc::shell::device::control::Control
[−]
[src]
pub struct Control { /* fields omitted */ }
Methods
impl Control[src]
pub fn new(buf: In, len: size_t) -> Self[src]
The constructor method new returns a Control's event from Device.
pub fn ss_mod(&mut self, ss: c_uchar)[src]
pub fn as_slice(&self) -> &[c_uchar][src]
The accessor method as_slice returns the Control Event.
pub fn as_time(&self) -> Tm[src]
The accessor method as_time returns the Time.
pub fn is_enter(&self) -> Option<()>[src]
The accessor method is_enter returns an Option for the Enter Key.
pub fn is_key(&self) -> Option<Key>[src]
The accessor method is_key returns an Option for
the Key interface.
pub fn is_mouse(&self) -> Option<Mouse>[src]
The accessor method is_mouse returns an Option for
the Mouse interface.
Trait Implementations
impl Clone for Control[src]
fn clone(&self) -> Control[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 Control[src]
impl Debug for Control[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Display for Control[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for Control[src]
fn eq(&self, rhs: &Control) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.