pub struct DCB {
Show 15 fields pub DCBlength: u32, pub BaudRate: u32, pub BitFields: u32, pub wReserved: u16, pub XonLim: u16, pub XoffLim: u16, pub ByteSize: u8, pub Parity: u8, pub StopBits: u8, pub XonChar: i8, pub XoffChar: i8, pub ErrorChar: i8, pub EofChar: i8, pub EvtChar: i8, pub wReserved1: u16,
}

Fields§

§DCBlength: u32§BaudRate: u32§BitFields: u32§wReserved: u16§XonLim: u16§XoffLim: u16§ByteSize: u8§Parity: u8§StopBits: u8§XonChar: i8§XoffChar: i8§ErrorChar: i8§EofChar: i8§EvtChar: i8§wReserved1: u16

Implementations§

source§

impl DCB

source

pub fn fBinary(&self) -> u32

source

pub fn set_fBinary(&mut self, val: u32)

source

pub fn fParity(&self) -> u32

source

pub fn set_fParity(&mut self, val: u32)

source

pub fn fOutxCtsFlow(&self) -> u32

source

pub fn set_fOutxCtsFlow(&mut self, val: u32)

source

pub fn fOutxDsrFlow(&self) -> u32

source

pub fn set_fOutxDsrFlow(&mut self, val: u32)

source

pub fn fDtrControl(&self) -> u32

source

pub fn set_fDtrControl(&mut self, val: u32)

source

pub fn fDsrSensitivity(&self) -> u32

source

pub fn set_fDsrSensitivity(&mut self, val: u32)

source

pub fn fTXContinueOnXoff(&self) -> u32

source

pub fn set_fTXContinueOnXoff(&mut self, val: u32)

source

pub fn fOutX(&self) -> u32

source

pub fn set_fOutX(&mut self, val: u32)

source

pub fn fInX(&self) -> u32

source

pub fn set_fInX(&mut self, val: u32)

source

pub fn fErrorChar(&self) -> u32

source

pub fn set_fErrorChar(&mut self, val: u32)

source

pub fn fNull(&self) -> u32

source

pub fn set_fNull(&mut self, val: u32)

source

pub fn fRtsControl(&self) -> u32

source

pub fn set_fRtsControl(&mut self, val: u32)

source

pub fn fAbortOnError(&self) -> u32

source

pub fn set_fAbortOnError(&mut self, val: u32)

source

pub fn fDummy2(&self) -> u32

source

pub fn set_fDummy2(&mut self, val: u32)

Trait Implementations§

source§

impl Clone for DCB

source§

fn clone(&self) -> DCB

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for DCB

Auto Trait Implementations§

§

impl RefUnwindSafe for DCB

§

impl Send for DCB

§

impl Sync for DCB

§

impl Unpin for DCB

§

impl UnwindSafe for DCB

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.