pub struct FieldbusRequest {
pub pin_cs: u8,
pub request_creation_time: Instant,
pub request_kind: u8,
pub operations: Vec<Operation>,
}
Expand description
Структура отдельного запроса на коммуникацию по шине SPI
Fields§
§pin_cs: u8
Номер пина Chip Select
request_creation_time: Instant
Время создания запроса.
Можно контролировать время выполнения запросов
request_kind: u8
Вид запроса.
Необходим для правильной расшифровки ответа
operations: Vec<Operation>
Массив операций
Implementations§
Trait Implementations§
Source§impl Clone for FieldbusRequest
impl Clone for FieldbusRequest
Source§fn clone(&self) -> FieldbusRequest
fn clone(&self) -> FieldbusRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for FieldbusRequest
impl RefUnwindSafe for FieldbusRequest
impl Send for FieldbusRequest
impl Sync for FieldbusRequest
impl Unpin for FieldbusRequest
impl UnwindSafe for FieldbusRequest
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