pub struct ResponseTpdu<'a> {
pub tag: u8,
pub t_c_id: u8,
pub data: &'a [u8],
pub sb_value: SbValue,
pub block: Option<DataBlock>,
}Expand description
R_TPDU (Table A.2): a Response TPDU, module → host. The mandatory trailing
Status (SB) is NOT included in the length_field and is modelled separately.
Fields§
§tag: u8The r_tpdu_tag (e.g. DATA_LAST/DATA_MORE).
t_c_id: u8t_c_id.
data: &'a [u8]Data field (length_value - 1 bytes).
sb_value: SbValueSB_value from the mandatory trailing Status.
block: Option<DataBlock>Whether the data block was the last (Tdata_last) — convenience view of
tag for chaining, None if tag is not a data block tag.
Trait Implementations§
Source§impl<'a> Clone for ResponseTpdu<'a>
impl<'a> Clone for ResponseTpdu<'a>
Source§fn clone(&self) -> ResponseTpdu<'a>
fn clone(&self) -> ResponseTpdu<'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 ResponseTpdu<'a>
impl<'a> Debug for ResponseTpdu<'a>
impl<'a> Eq for ResponseTpdu<'a>
Source§impl<'a> Parse<'a> for ResponseTpdu<'a>
impl<'a> Parse<'a> for ResponseTpdu<'a>
Source§impl<'a> PartialEq for ResponseTpdu<'a>
impl<'a> PartialEq for ResponseTpdu<'a>
Source§impl<'a> Serialize for ResponseTpdu<'a>
Available on crate feature serde only.
impl<'a> Serialize for ResponseTpdu<'a>
Available on crate feature
serde only.Source§impl Serialize for ResponseTpdu<'_>
impl Serialize for ResponseTpdu<'_>
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 ResponseTpdu<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResponseTpdu<'a>
impl<'a> RefUnwindSafe for ResponseTpdu<'a>
impl<'a> Send for ResponseTpdu<'a>
impl<'a> Sync for ResponseTpdu<'a>
impl<'a> Unpin for ResponseTpdu<'a>
impl<'a> UnsafeUnpin for ResponseTpdu<'a>
impl<'a> UnwindSafe for ResponseTpdu<'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