#[repr(C)]pub struct Config {
pub character_width: CharacterWidth,
pub stop_width: StopWidth,
pub parity: Parity,
pub control_flow: FlowControl,
pub baud_rate: u32,
}Fields§
§character_width: CharacterWidth§stop_width: StopWidth§parity: Parity§control_flow: FlowControl§baud_rate: u32Trait Implementations§
impl Copy for Config
Source§impl<___E> Encode<Config, ___E> for Configwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Config, ___E> for Configwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Config>
const COPY_OPTIMIZATION: CopyOptimization<Self, Config>
Source§impl<'a, ___E> Encode<Config, ___E> for &'a Configwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Config, ___E> for &'a Configwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> EncodeOption<Box<'static, Config>, ___E> for Config
impl<___E> EncodeOption<Box<'static, Config>, ___E> for Config
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Config>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Config>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<Box<'static, Config>, ___E> for &'a Config
impl<'a, ___E> EncodeOption<Box<'static, Config>, ___E> for &'a Config
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Config>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Config>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for Config
Source§impl FromWireRef<Config> for Config
impl FromWireRef<Config> for Config
Source§fn from_wire_ref(wire: &Config) -> Self
fn from_wire_ref(wire: &Config) -> Self
Converts the given reference to this type.
Source§impl Ord for Config
impl Ord for Config
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Config
impl PartialOrd for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]