Enum pty_proc::shell::device::state::DeviceState
[−]
[src]
pub enum DeviceState {
Idle,
Sig(Sig),
OutText(Out, size_t),
InText(Control),
}Variants
IdleUpdate.
Sig(Sig)As catched a signal.
OutText(Out, size_t)The output of new lines.
InText(Control)The current character.
Methods
impl DeviceState[src]
pub fn from_idle() -> Self[src]
The constructor method from_idle returns a Update's event.
pub fn from_out(buf: Out, len: size_t) -> Self[src]
The constructor method from_out returns a text Output's event.
pub fn from_in(buf: In, len: size_t) -> Self[src]
The constructor method from_out returns a key Input's event.
pub fn from_sig(sig: c_int) -> Self[src]
The constructor method from_ig returns a Signal's event.
pub fn is_idle(&self) -> Option<()>[src]
The accessor method is_idle returns a Option for Update's event.
pub fn is_out_text(&self) -> Option<(Out, size_t)>[src]
The accessor method is_out_text returns a Option for Ouput's event.
pub fn is_input(&self) -> Option<Control>[src]
The accessor method is_input returns a Option for key
or mouse Input's event.
pub fn is_signal(&self) -> Option<c_int>[src]
The accessor method is_signal returns a Option for Signal's event.
Trait Implementations
impl Copy for DeviceState[src]
impl Clone for DeviceState[src]
fn clone(&self) -> DeviceState[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