pub struct LinkDescriptor<T: AsRef<[u8]>> { /* private fields */ }Expand description
A reader/writer for the Link Descriptor.
+----------+----------------+--------------+
| Timeslot | Channel offset | Link options |
+----------+----------------+--------------+
0 2 4Implementations§
Source§impl<T: AsRef<[u8]>> LinkDescriptor<T>
impl<T: AsRef<[u8]>> LinkDescriptor<T>
Sourcepub fn new(data: T) -> Self
pub fn new(data: T) -> Self
Create a new LinkDescriptor reader/writer from a given buffer.
Sourcepub fn channel_offset(&self) -> u16
pub fn channel_offset(&self) -> u16
Return the channel offset field.
Sourcepub fn link_options(&self) -> TschLinkOption
pub fn link_options(&self) -> TschLinkOption
Return the link options field.
Auto Trait Implementations§
impl<T> Freeze for LinkDescriptor<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinkDescriptor<T>where
T: RefUnwindSafe,
impl<T> Send for LinkDescriptor<T>where
T: Send,
impl<T> Sync for LinkDescriptor<T>where
T: Sync,
impl<T> Unpin for LinkDescriptor<T>where
T: Unpin,
impl<T> UnwindSafe for LinkDescriptor<T>where
T: UnwindSafe,
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