pub struct LinuxTermiosControlFlags { /* private fields */ }linux only.Expand description
๐ง ๐ฎ โ
LinuxTermios control flags.
๐ sys/os/linux/io/term
๐ฆ size_of::<LinuxTermiosControlFlags>() == 2 bytes / 16 bits
NOTE: CSIZE/CS5/CS6/CS7/CS8 are a masked character-size field,
not independent flags. Prefer LinuxTermios::set_char_size when changing it.
Implementationsยง
Sourceยงimpl LinuxTermiosControlFlags
Named constants
impl LinuxTermiosControlFlags
Named constants
Sourceยงimpl LinuxTermiosControlFlags
Convenience methods derived from each named constant.
impl LinuxTermiosControlFlags
Convenience methods derived from each named constant.
Sourcepub const fn contains_csize(self) -> bool
pub const fn contains_csize(self) -> bool
Returns true if the set contains all bits in CSIZE.
Sourcepub const fn intersects_csize(self) -> bool
pub const fn intersects_csize(self) -> bool
Returns true if the set shares any bit with CSIZE.
Sourcepub const fn with_csize(self) -> Self
pub const fn with_csize(self) -> Self
Returns self with CSIZE inserted.
Sourcepub const fn with_csize_if(self, condition: bool) -> Self
pub const fn with_csize_if(self, condition: bool) -> Self
Returns self with CSIZE inserted if condition is true.
Sourcepub const fn without_csize(self) -> Self
pub const fn without_csize(self) -> Self
Returns self with CSIZE removed.
Sourcepub const fn set_csize_if(&mut self, condition: bool)
pub const fn set_csize_if(&mut self, condition: bool)
Sets CSIZE if condition is true.
Sourcepub const fn unset_csize(&mut self)
pub const fn unset_csize(&mut self)
Unsets CSIZE.
Sourcepub const fn contains_cs6(self) -> bool
pub const fn contains_cs6(self) -> bool
Returns true if all bits in CS6 are present.
Sourcepub const fn intersects_cs6(self) -> bool
pub const fn intersects_cs6(self) -> bool
Returns true if the set shares any bit with CS6.
Sourcepub const fn with_cs6_if(self, condition: bool) -> Self
pub const fn with_cs6_if(self, condition: bool) -> Self
Returns self with CS6 inserted if condition is true.
Sourcepub const fn without_cs6(self) -> Self
pub const fn without_cs6(self) -> Self
Returns self with CS6 removed.
Sourcepub const fn set_cs6_if(&mut self, condition: bool)
pub const fn set_cs6_if(&mut self, condition: bool)
Sets CS6 if condition is true.
Sourcepub const fn contains_cs7(self) -> bool
pub const fn contains_cs7(self) -> bool
Returns true if all bits in CS7 are present.
Sourcepub const fn intersects_cs7(self) -> bool
pub const fn intersects_cs7(self) -> bool
Returns true if the set shares any bit with CS7.
Sourcepub const fn with_cs7_if(self, condition: bool) -> Self
pub const fn with_cs7_if(self, condition: bool) -> Self
Returns self with CS7 inserted if condition is true.
Sourcepub const fn without_cs7(self) -> Self
pub const fn without_cs7(self) -> Self
Returns self with CS7 removed.
Sourcepub const fn set_cs7_if(&mut self, condition: bool)
pub const fn set_cs7_if(&mut self, condition: bool)
Sets CS7 if condition is true.
Sourcepub const fn contains_cs8(self) -> bool
pub const fn contains_cs8(self) -> bool
Returns true if the set contains all bits in CS8.
Sourcepub const fn intersects_cs8(self) -> bool
pub const fn intersects_cs8(self) -> bool
Returns true if the set shares any bit with CS8.
Sourcepub const fn with_cs8_if(self, condition: bool) -> Self
pub const fn with_cs8_if(self, condition: bool) -> Self
Returns self with CS8 inserted if condition is true.
Sourcepub const fn without_cs8(self) -> Self
pub const fn without_cs8(self) -> Self
Returns self with CS8 removed.
Sourcepub const fn set_cs8_if(&mut self, condition: bool)
pub const fn set_cs8_if(&mut self, condition: bool)
Sets CS8 if condition is true.
Sourcepub const fn has_cstopb(self) -> bool
pub const fn has_cstopb(self) -> bool
Returns true if CSTOPB is present.
Sourcepub const fn contains_cstopb(self) -> bool
pub const fn contains_cstopb(self) -> bool
Returns true if all bits in CSTOPB are present.
Sourcepub const fn intersects_cstopb(self) -> bool
pub const fn intersects_cstopb(self) -> bool
Returns true if the set shares any bit with CSTOPB.
Sourcepub const fn with_cstopb(self) -> Self
pub const fn with_cstopb(self) -> Self
Returns self with CSTOPB inserted.
Sourcepub const fn with_cstopb_if(self, condition: bool) -> Self
pub const fn with_cstopb_if(self, condition: bool) -> Self
Returns self with CSTOPB inserted if condition is true.
Sourcepub const fn without_cstopb(self) -> Self
pub const fn without_cstopb(self) -> Self
Returns self with CSTOPB removed.
Sourcepub const fn set_cstopb(&mut self)
pub const fn set_cstopb(&mut self)
Sets CSTOPB.
Sourcepub const fn set_cstopb_if(&mut self, condition: bool)
pub const fn set_cstopb_if(&mut self, condition: bool)
Sets CSTOPB if condition is true.
Sourcepub const fn unset_cstopb(&mut self)
pub const fn unset_cstopb(&mut self)
Unsets CSTOPB.
Sourcepub const fn contains_cread(self) -> bool
pub const fn contains_cread(self) -> bool
Returns true if all bits in CREAD are present.
Sourcepub const fn intersects_cread(self) -> bool
pub const fn intersects_cread(self) -> bool
Returns true if the set shares any bit with CREAD.
Sourcepub const fn with_cread(self) -> Self
pub const fn with_cread(self) -> Self
Returns self with CREAD inserted.
Sourcepub const fn with_cread_if(self, condition: bool) -> Self
pub const fn with_cread_if(self, condition: bool) -> Self
Returns self with CREAD inserted if condition is true.
Sourcepub const fn without_cread(self) -> Self
pub const fn without_cread(self) -> Self
Returns self with CREAD removed.
Sourcepub const fn set_cread_if(&mut self, condition: bool)
pub const fn set_cread_if(&mut self, condition: bool)
Sets CREAD if condition is true.
Sourcepub const fn unset_cread(&mut self)
pub const fn unset_cread(&mut self)
Unsets CREAD.
Sourcepub const fn has_parenb(self) -> bool
pub const fn has_parenb(self) -> bool
Returns true if PARENB is present.
Sourcepub const fn contains_parenb(self) -> bool
pub const fn contains_parenb(self) -> bool
Returns true if all bits in PARENB are present.
Sourcepub const fn intersects_parenb(self) -> bool
pub const fn intersects_parenb(self) -> bool
Returns true if the set shares any bit with PARENB.
Sourcepub const fn with_parenb(self) -> Self
pub const fn with_parenb(self) -> Self
Returns self with PARENB inserted.
Sourcepub const fn with_parenb_if(self, condition: bool) -> Self
pub const fn with_parenb_if(self, condition: bool) -> Self
Returns self with PARENB inserted if condition is true.
Sourcepub const fn without_parenb(self) -> Self
pub const fn without_parenb(self) -> Self
Returns self with PARENB removed.
Sourcepub const fn set_parenb(&mut self)
pub const fn set_parenb(&mut self)
Sets PARENB.
Sourcepub const fn set_parenb_if(&mut self, condition: bool)
pub const fn set_parenb_if(&mut self, condition: bool)
Sets PARENB if condition is true.
Sourcepub const fn unset_parenb(&mut self)
pub const fn unset_parenb(&mut self)
Unsets PARENB.
Sourcepub const fn has_parodd(self) -> bool
pub const fn has_parodd(self) -> bool
Returns true if PARODD is present.
Sourcepub const fn contains_parodd(self) -> bool
pub const fn contains_parodd(self) -> bool
Returns true if all bits in PARODD are present.
Sourcepub const fn intersects_parodd(self) -> bool
pub const fn intersects_parodd(self) -> bool
Returns true if the set shares any bit with PARODD.
Sourcepub const fn with_parodd(self) -> Self
pub const fn with_parodd(self) -> Self
Returns self with PARODD inserted.
Sourcepub const fn with_parodd_if(self, condition: bool) -> Self
pub const fn with_parodd_if(self, condition: bool) -> Self
Returns self with PARODD inserted if condition is true.
Sourcepub const fn without_parodd(self) -> Self
pub const fn without_parodd(self) -> Self
Returns self with PARODD removed.
Sourcepub const fn set_parodd(&mut self)
pub const fn set_parodd(&mut self)
Sets PARODD.
Sourcepub const fn set_parodd_if(&mut self, condition: bool)
pub const fn set_parodd_if(&mut self, condition: bool)
Sets PARODD if condition is true.
Sourcepub const fn unset_parodd(&mut self)
pub const fn unset_parodd(&mut self)
Unsets PARODD.
Sourcepub const fn contains_hupcl(self) -> bool
pub const fn contains_hupcl(self) -> bool
Returns true if all bits in HUPCL are present.
Sourcepub const fn intersects_hupcl(self) -> bool
pub const fn intersects_hupcl(self) -> bool
Returns true if the set shares any bit with HUPCL.
Sourcepub const fn with_hupcl(self) -> Self
pub const fn with_hupcl(self) -> Self
Returns self with HUPCL inserted.
Sourcepub const fn with_hupcl_if(self, condition: bool) -> Self
pub const fn with_hupcl_if(self, condition: bool) -> Self
Returns self with HUPCL inserted if condition is true.
Sourcepub const fn without_hupcl(self) -> Self
pub const fn without_hupcl(self) -> Self
Returns self with HUPCL removed.
Sourcepub const fn set_hupcl_if(&mut self, condition: bool)
pub const fn set_hupcl_if(&mut self, condition: bool)
Sets HUPCL if condition is true.
Sourcepub const fn unset_hupcl(&mut self)
pub const fn unset_hupcl(&mut self)
Unsets HUPCL.
Sourcepub const fn has_clocal(self) -> bool
pub const fn has_clocal(self) -> bool
Returns true if CLOCAL is present.
Sourcepub const fn contains_clocal(self) -> bool
pub const fn contains_clocal(self) -> bool
Returns true if all bits in CLOCAL are present.
Sourcepub const fn intersects_clocal(self) -> bool
pub const fn intersects_clocal(self) -> bool
Returns true if the set shares any bit with CLOCAL.
Sourcepub const fn with_clocal(self) -> Self
pub const fn with_clocal(self) -> Self
Returns self with CLOCAL inserted.
Sourcepub const fn with_clocal_if(self, condition: bool) -> Self
pub const fn with_clocal_if(self, condition: bool) -> Self
Returns self with CLOCAL inserted if condition is true.
Sourcepub const fn without_clocal(self) -> Self
pub const fn without_clocal(self) -> Self
Returns self with CLOCAL removed.
Sourcepub const fn set_clocal(&mut self)
pub const fn set_clocal(&mut self)
Sets CLOCAL.
Sourcepub const fn set_clocal_if(&mut self, condition: bool)
pub const fn set_clocal_if(&mut self, condition: bool)
Sets CLOCAL if condition is true.
Sourcepub const fn unset_clocal(&mut self)
pub const fn unset_clocal(&mut self)
Unsets CLOCAL.
Sourceยงimpl LinuxTermiosControlFlags
Common set methods
impl LinuxTermiosControlFlags
Common set methods
Sourceยงimpl LinuxTermiosControlFlags
Set operations
impl LinuxTermiosControlFlags
Set operations
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self and other share any bit.
Sourcepub const fn is_subset(self, other: Self) -> bool
pub const fn is_subset(self, other: Self) -> bool
Returns true if all bits in self are also set in other.
Sourcepub const fn is_superset(self, other: Self) -> bool
pub const fn is_superset(self, other: Self) -> bool
Returns true if all bits in other are also set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference of self and other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference of self and other.
Sourceยงimpl LinuxTermiosControlFlags
Mutating set operations
impl LinuxTermiosControlFlags
Mutating set operations
Trait Implementationsยง
Sourceยงimpl Binary for LinuxTermiosControlFlags
Formats the set as a binary mask over its declared bit domain.
impl Binary for LinuxTermiosControlFlags
Formats the set as a binary mask over its declared bit domain.
Sourceยงimpl BitAnd for LinuxTermiosControlFlags
impl BitAnd for LinuxTermiosControlFlags
Sourceยงimpl BitAndAssign for LinuxTermiosControlFlags
impl BitAndAssign for LinuxTermiosControlFlags
Sourceยงfn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSourceยงimpl BitOr for LinuxTermiosControlFlags
impl BitOr for LinuxTermiosControlFlags
Sourceยงimpl BitOrAssign for LinuxTermiosControlFlags
impl BitOrAssign for LinuxTermiosControlFlags
Sourceยงfn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSourceยงimpl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxTermiosControlFlags
impl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxTermiosControlFlags
Sourceยงconst BIT_SIZE: usize = _
const BIT_SIZE: usize = _
Sourceยงconst MIN_BYTE_SIZE: usize = _
const MIN_BYTE_SIZE: usize = _
Sourceยงfn bit_size(&self) -> usize
fn bit_size(&self) -> usize
Sourceยงfn min_byte_size(&self) -> usize
fn min_byte_size(&self) -> usize
Sourceยงimpl BitXor for LinuxTermiosControlFlags
impl BitXor for LinuxTermiosControlFlags
Sourceยงimpl BitXorAssign for LinuxTermiosControlFlags
impl BitXorAssign for LinuxTermiosControlFlags
Sourceยงfn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSourceยงimpl Clone for LinuxTermiosControlFlags
impl Clone for LinuxTermiosControlFlags
Sourceยงfn clone(&self) -> LinuxTermiosControlFlags
fn clone(&self) -> LinuxTermiosControlFlags
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LinuxTermiosControlFlags
Sourceยงimpl Debug for LinuxTermiosControlFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Debug for LinuxTermiosControlFlags
Formats the set as a prefixed binary mask over its declared bit domain.
Sourceยงimpl DebugExt for LinuxTermiosControlFlagswhere
LinuxTermiosControlFlags: Debug,
impl DebugExt for LinuxTermiosControlFlagswhere
LinuxTermiosControlFlags: Debug,
Sourceยงimpl Default for LinuxTermiosControlFlags
impl Default for LinuxTermiosControlFlags
Sourceยงimpl Display for LinuxTermiosControlFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Display for LinuxTermiosControlFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Eq for LinuxTermiosControlFlags
Sourceยงimpl Hash for LinuxTermiosControlFlags
impl Hash for LinuxTermiosControlFlags
Sourceยงimpl LowerHex for LinuxTermiosControlFlags
Formats the set as a hexadecimal mask over its declared bit domain.
impl LowerHex for LinuxTermiosControlFlags
Formats the set as a hexadecimal mask over its declared bit domain.
Sourceยงimpl Not for LinuxTermiosControlFlags
impl Not for LinuxTermiosControlFlags
Sourceยงimpl Octal for LinuxTermiosControlFlags
Formats the set as an octal mask over its declared bit domain.
impl Octal for LinuxTermiosControlFlags
Formats the set as an octal mask over its declared bit domain.
Sourceยงimpl Ord for LinuxTermiosControlFlags
impl Ord for LinuxTermiosControlFlags
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialOrd for LinuxTermiosControlFlags
impl PartialOrd for LinuxTermiosControlFlags
Sourceยงimpl Sub for LinuxTermiosControlFlags
impl Sub for LinuxTermiosControlFlags
Sourceยงimpl SubAssign for LinuxTermiosControlFlags
impl SubAssign for LinuxTermiosControlFlags
Sourceยงfn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementationsยง
impl Freeze for LinuxTermiosControlFlags
impl RefUnwindSafe for LinuxTermiosControlFlags
impl Send for LinuxTermiosControlFlags
impl Sync for LinuxTermiosControlFlags
impl Unpin for LinuxTermiosControlFlags
impl UnsafeUnpin for LinuxTermiosControlFlags
impl UnwindSafe for LinuxTermiosControlFlags
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Sourceยงimpl<T> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.