pub struct SerialProxyConfigureRequest {
pub instance: u32,
pub baudrate: u32,
pub flow_control: bool,
pub parity: i32,
pub stop_bits: u32,
pub data_size: u32,
}Expand description
Configure UART parameters for a serial proxy instance
Fields§
§instance: u32Instance index (0-based)
baudrate: u32Baud rate in bits per second
flow_control: boolEnable hardware flow control
parity: i32Parity setting
stop_bits: u32Number of stop bits (1 or 2)
data_size: u32Number of data bits (5-8)
Implementations§
Source§impl SerialProxyConfigureRequest
impl SerialProxyConfigureRequest
Sourcepub fn parity(&self) -> SerialProxyParity
pub fn parity(&self) -> SerialProxyParity
Returns the enum value of parity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_parity(&mut self, value: SerialProxyParity)
pub fn set_parity(&mut self, value: SerialProxyParity)
Sets parity to the provided enum value.
Trait Implementations§
Source§impl Clone for SerialProxyConfigureRequest
impl Clone for SerialProxyConfigureRequest
Source§fn clone(&self) -> SerialProxyConfigureRequest
fn clone(&self) -> SerialProxyConfigureRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerialProxyConfigureRequest
Source§impl Debug for SerialProxyConfigureRequest
impl Debug for SerialProxyConfigureRequest
impl Eq for SerialProxyConfigureRequest
Source§impl From<SerialProxyConfigureRequest> for EspHomeMessage
impl From<SerialProxyConfigureRequest> for EspHomeMessage
Source§fn from(msg: SerialProxyConfigureRequest) -> Self
fn from(msg: SerialProxyConfigureRequest) -> Self
Converts to this type from the input type.
Source§impl Hash for SerialProxyConfigureRequest
impl Hash for SerialProxyConfigureRequest
Source§impl Message for SerialProxyConfigureRequest
impl Message for SerialProxyConfigureRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SerialProxyConfigureRequest
impl PartialEq for SerialProxyConfigureRequest
Source§fn eq(&self, other: &SerialProxyConfigureRequest) -> bool
fn eq(&self, other: &SerialProxyConfigureRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SerialProxyConfigureRequest
Auto Trait Implementations§
impl Freeze for SerialProxyConfigureRequest
impl RefUnwindSafe for SerialProxyConfigureRequest
impl Send for SerialProxyConfigureRequest
impl Sync for SerialProxyConfigureRequest
impl Unpin for SerialProxyConfigureRequest
impl UnsafeUnpin for SerialProxyConfigureRequest
impl UnwindSafe for SerialProxyConfigureRequest
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