#[repr(usize)]pub enum BaudrateType {
Baud9600 = 9_600,
Baud115200 = 115_200,
Baud460800 = 460_800,
}Expand description
波特率
Variants§
Trait Implementations§
Source§impl Clone for BaudrateType
impl Clone for BaudrateType
Source§fn clone(&self) -> BaudrateType
fn clone(&self) -> BaudrateType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BaudrateType
impl Debug for BaudrateType
Source§impl<'de> Deserialize<'de> for BaudrateType
impl<'de> Deserialize<'de> for BaudrateType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BaudrateType> for usize
impl From<BaudrateType> for usize
Source§fn from(value: BaudrateType) -> Self
fn from(value: BaudrateType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BaudrateType
impl PartialEq for BaudrateType
Source§impl Serialize for BaudrateType
impl Serialize for BaudrateType
impl Copy for BaudrateType
impl Eq for BaudrateType
impl StructuralPartialEq for BaudrateType
Auto Trait Implementations§
impl Freeze for BaudrateType
impl RefUnwindSafe for BaudrateType
impl Send for BaudrateType
impl Sync for BaudrateType
impl Unpin for BaudrateType
impl UnwindSafe for BaudrateType
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