pub struct ModuleInfo<'a> {
pub module_timeout: u32,
pub block_timeout: u32,
pub min_block_time: u32,
pub taps: Vec<Tap<'a>>,
pub user_info: &'a [u8],
}Expand description
BIOP::ModuleInfo — carried in the DII moduleInfoBytes.
TR 101 202 §4.7.5.1, Table 4.14.
Fields§
§module_timeout: u32ModuleTimeOut — µs to time out acquisition of all blocks.
block_timeout: u32BlockTimeOut — µs to time out the next block.
min_block_time: u32MinBlockTime — min µs between two blocks.
taps: Vec<Tap<'a>>BIOP::Tap entries (≥1 BIOP_OBJECT_USE tap).
user_info: &'a [u8]userInfo descriptor loop bytes.
Implementations§
Source§impl<'a> ModuleInfo<'a>
impl<'a> ModuleInfo<'a>
Sourcepub fn descriptors(&self) -> impl Iterator<Item = (u8, &[u8])>
pub fn descriptors(&self) -> impl Iterator<Item = (u8, &[u8])>
Iterate over descriptors in the userInfo loop.
Each item is (tag: u8, data: &[u8]).
Sourcepub fn compressed_module_descriptor(
&self,
) -> Option<CompressedModuleDescriptor<'_>>
pub fn compressed_module_descriptor( &self, ) -> Option<CompressedModuleDescriptor<'_>>
Return the compressed_module_descriptor (tag 0x09) from the userInfo
loop, if present.
Trait Implementations§
Source§impl<'a> Clone for ModuleInfo<'a>
impl<'a> Clone for ModuleInfo<'a>
Source§fn clone(&self) -> ModuleInfo<'a>
fn clone(&self) -> ModuleInfo<'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 ModuleInfo<'a>
impl<'a> Debug for ModuleInfo<'a>
impl<'a> Eq for ModuleInfo<'a>
Source§impl<'a> Parse<'a> for ModuleInfo<'a>
impl<'a> Parse<'a> for ModuleInfo<'a>
Source§impl<'a> PartialEq for ModuleInfo<'a>
impl<'a> PartialEq for ModuleInfo<'a>
Source§fn eq(&self, other: &ModuleInfo<'a>) -> bool
fn eq(&self, other: &ModuleInfo<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ModuleInfo<'a>
impl<'a> Serialize for ModuleInfo<'a>
Source§impl Serialize for ModuleInfo<'_>
impl Serialize for ModuleInfo<'_>
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 ModuleInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModuleInfo<'a>
impl<'a> RefUnwindSafe for ModuleInfo<'a>
impl<'a> Send for ModuleInfo<'a>
impl<'a> Sync for ModuleInfo<'a>
impl<'a> Unpin for ModuleInfo<'a>
impl<'a> UnsafeUnpin for ModuleInfo<'a>
impl<'a> UnwindSafe for ModuleInfo<'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