#[repr(transparent)]pub struct UART_ERR_CODE(pub c_int);Expand description
UART用の汎用エラーコード
Note: 型はint8_tを想定しているが, if_listでラップされているためUARTの公開関数の返り値はintとなっている 基本負なのはRXの返り値は正が送ったByte数, 負がエラーコードとなっているため
Tuple Fields§
§0: c_intTrait Implementations§
Source§impl BitAnd for UART_ERR_CODE
impl BitAnd for UART_ERR_CODE
Source§impl BitAndAssign for UART_ERR_CODE
impl BitAndAssign for UART_ERR_CODE
Source§fn bitand_assign(&mut self, rhs: UART_ERR_CODE)
fn bitand_assign(&mut self, rhs: UART_ERR_CODE)
Performs the
&= operation. Read moreSource§impl BitOr for UART_ERR_CODE
impl BitOr for UART_ERR_CODE
Source§impl BitOrAssign for UART_ERR_CODE
impl BitOrAssign for UART_ERR_CODE
Source§fn bitor_assign(&mut self, rhs: UART_ERR_CODE)
fn bitor_assign(&mut self, rhs: UART_ERR_CODE)
Performs the
|= operation. Read moreSource§impl Clone for UART_ERR_CODE
impl Clone for UART_ERR_CODE
Source§fn clone(&self) -> UART_ERR_CODE
fn clone(&self) -> UART_ERR_CODE
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 UART_ERR_CODE
impl Debug for UART_ERR_CODE
Source§impl Hash for UART_ERR_CODE
impl Hash for UART_ERR_CODE
Source§impl PartialEq for UART_ERR_CODE
impl PartialEq for UART_ERR_CODE
impl Copy for UART_ERR_CODE
impl Eq for UART_ERR_CODE
impl StructuralPartialEq for UART_ERR_CODE
Auto Trait Implementations§
impl Freeze for UART_ERR_CODE
impl RefUnwindSafe for UART_ERR_CODE
impl Send for UART_ERR_CODE
impl Sync for UART_ERR_CODE
impl Unpin for UART_ERR_CODE
impl UnwindSafe for UART_ERR_CODE
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