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