Skip to main content

PartialControl

Struct PartialControl 

Source
pub struct PartialControl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> { /* private fields */ }
Expand description

Builder struct for partial initialization of Control .

Implementations§

Source§

impl<const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<false, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_baud8( &self, value: bool, ) -> PartialControl<true, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, false, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_auto_rts( &self, value: bool, ) -> PartialControl<baud8, true, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, false, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_def_rts( &self, value: bool, ) -> PartialControl<baud8, auto_rts, true, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, false, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_auto_cts( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, true, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, false, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_loopback_block( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, true, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, false, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_loopback( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, true, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, false, stopbits, parity_manual, parity_even, parity_enable>

Source

pub const fn with_wordsize( &self, value: WordSize, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, true, stopbits, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, false, parity_manual, parity_even, parity_enable>

Source

pub const fn with_stopbits( &self, value: Stopbits, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, true, parity_manual, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_even: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, false, parity_even, parity_enable>

Source

pub const fn with_parity_manual( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, true, parity_even, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_enable: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, false, parity_enable>

Source

pub const fn with_parity_even( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, true, parity_enable>

Source§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, false>

Source

pub const fn with_parity_enable( &self, value: bool, ) -> PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, true>

Source§

impl PartialControl<true, true, true, true, true, true, true, true, true, true, true>

Source

pub const fn build(&self) -> Control

Builds the bitfield from the values passed into this builder.

Every field must be set on PartialControl to be able to build a Control .

Auto Trait Implementations§

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Forget for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Freeze for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Move for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> RefUnwindSafe for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Send for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Sync for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> Unpin for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> UnsafeUnpin for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

§

impl<const baud8: bool, const auto_rts: bool, const def_rts: bool, const auto_cts: bool, const loopback_block: bool, const loopback: bool, const wordsize: bool, const stopbits: bool, const parity_manual: bool, const parity_even: bool, const parity_enable: bool> UnwindSafe for PartialControl<baud8, auto_rts, def_rts, auto_cts, loopback_block, loopback, wordsize, stopbits, parity_manual, parity_even, parity_enable>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.