pub struct GtsSlot<T: AsRef<[u8]>> { /* private fields */ }Expand description
Guaranteed Timeslot Descriptor
Implementations§
Source§impl<T: AsRef<[u8]>> GtsSlot<T>
impl<T: AsRef<[u8]>> GtsSlot<T>
Sourcepub fn short_address(&self) -> Address
pub fn short_address(&self) -> Address
Short address of the intended device.
Sourcepub fn starting_slot(&self) -> u8
pub fn starting_slot(&self) -> u8
Superframe slot at which the GTS is to begin.
Sourcepub fn direction(&self) -> GtsDirection
pub fn direction(&self) -> GtsDirection
The GTS slot direction.
Source§impl<T: AsRef<[u8]>> GtsSlot<T>
impl<T: AsRef<[u8]>> GtsSlot<T>
Sourcepub fn new(buffer: T, direction: GtsDirection) -> Result<Self>
pub fn new(buffer: T, direction: GtsDirection) -> Result<Self>
Create a new [#name] reader/writer from a given buffer.
Sourcepub fn new_unchecked(buffer: T, direction: GtsDirection) -> Self
pub fn new_unchecked(buffer: T, direction: GtsDirection) -> Self
Create a new [#name] reader/writer from a given buffer without length
checking.
Auto Trait Implementations§
impl<T> Freeze for GtsSlot<T>where
T: Freeze,
impl<T> RefUnwindSafe for GtsSlot<T>where
T: RefUnwindSafe,
impl<T> Send for GtsSlot<T>where
T: Send,
impl<T> Sync for GtsSlot<T>where
T: Sync,
impl<T> Unpin for GtsSlot<T>where
T: Unpin,
impl<T> UnwindSafe for GtsSlot<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