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