pub struct CommandTpdu<'a> {
pub tag: u8,
pub t_c_id: u8,
pub data: &'a [u8],
}Expand description
C_TPDU (Table A.1): a Command TPDU, host → module. length_field covers
t_c_id + data.
Fields§
§tag: u8The c_tpdu_tag (e.g. RCV, or DATA_LAST/DATA_MORE for Send Data).
t_c_id: u8t_c_id.
data: &'a [u8]Data field (length_value - 1 bytes).
Trait Implementations§
Source§impl<'a> Clone for CommandTpdu<'a>
impl<'a> Clone for CommandTpdu<'a>
Source§fn clone(&self) -> CommandTpdu<'a>
fn clone(&self) -> CommandTpdu<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CommandTpdu<'a>
impl<'a> Debug for CommandTpdu<'a>
impl<'a> Eq for CommandTpdu<'a>
Source§impl<'a> Parse<'a> for CommandTpdu<'a>
impl<'a> Parse<'a> for CommandTpdu<'a>
Source§impl<'a> PartialEq for CommandTpdu<'a>
impl<'a> PartialEq for CommandTpdu<'a>
Source§impl<'a> Serialize for CommandTpdu<'a>
Available on crate feature serde only.
impl<'a> Serialize for CommandTpdu<'a>
Available on crate feature
serde only.Source§impl Serialize for CommandTpdu<'_>
impl Serialize for CommandTpdu<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for CommandTpdu<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandTpdu<'a>
impl<'a> RefUnwindSafe for CommandTpdu<'a>
impl<'a> Send for CommandTpdu<'a>
impl<'a> Sync for CommandTpdu<'a>
impl<'a> Unpin for CommandTpdu<'a>
impl<'a> UnsafeUnpin for CommandTpdu<'a>
impl<'a> UnwindSafe for CommandTpdu<'a>
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