[−][src]Struct termorrow::ControlMode
Implementations
impl ControlMode
[src]
pub fn cstopb(&self) -> bool
[src]
Send two stop bits, else one.
Gets the value for the flag.
pub fn only_cstopb(&self) -> bool
[src]
Send two stop bits, else one.
Checks if this flag is the only one set.
pub fn set_cstopb(&mut self, value: bool) -> &Self
[src]
Send two stop bits, else one.
Sets the flag to the given value.
pub fn cread(&self) -> bool
[src]
Enable receiver.
Gets the value for the flag.
pub fn only_cread(&self) -> bool
[src]
Enable receiver.
Checks if this flag is the only one set.
pub fn set_cread(&mut self, value: bool) -> &Self
[src]
Enable receiver.
Sets the flag to the given value.
pub fn parenb(&self) -> bool
[src]
Parity enable.
Gets the value for the flag.
pub fn only_parenb(&self) -> bool
[src]
Parity enable.
Checks if this flag is the only one set.
pub fn set_parenb(&mut self, value: bool) -> &Self
[src]
Parity enable.
Sets the flag to the given value.
pub fn parodd(&self) -> bool
[src]
Odd parity, else even.
Gets the value for the flag.
pub fn only_parodd(&self) -> bool
[src]
Odd parity, else even.
Checks if this flag is the only one set.
pub fn set_parodd(&mut self, value: bool) -> &Self
[src]
Odd parity, else even.
Sets the flag to the given value.
pub fn hupcl(&self) -> bool
[src]
Hang up on last close.
Gets the value for the flag.
pub fn only_hupcl(&self) -> bool
[src]
Hang up on last close.
Checks if this flag is the only one set.
pub fn set_hupcl(&mut self, value: bool) -> &Self
[src]
Hang up on last close.
Sets the flag to the given value.
pub fn clocal(&self) -> bool
[src]
Ignore modem status lines.
Gets the value for the flag.
pub fn only_clocal(&self) -> bool
[src]
Ignore modem status lines.
Checks if this flag is the only one set.
pub fn set_clocal(&mut self, value: bool) -> &Self
[src]
Ignore modem status lines.
Sets the flag to the given value.
Auto Trait Implementations
impl RefUnwindSafe for ControlMode
[src]
impl Send for ControlMode
[src]
impl Sync for ControlMode
[src]
impl Unpin for ControlMode
[src]
impl UnwindSafe for ControlMode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,