pub struct ModeledRadio { /* private fields */ }Expand description
Radio implementation backed by a ModeledNetwork.
Implementations§
Trait Implementations§
Source§impl Clone for ModeledRadio
impl Clone for ModeledRadio
Source§fn clone(&self) -> ModeledRadio
fn clone(&self) -> ModeledRadio
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Radio for ModeledRadio
impl Radio for ModeledRadio
type Error = ()
Source§async fn transmit(
&mut self,
data: &[u8],
options: TxOptions,
) -> Result<(), TxError<Self::Error>>
async fn transmit( &mut self, data: &[u8], options: TxOptions, ) -> Result<(), TxError<Self::Error>>
Transmit a complete raw UMSH frame.
Source§fn poll_receive(
&mut self,
_cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<RxInfo, Self::Error>>
fn poll_receive( &mut self, _cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<RxInfo, Self::Error>>
Poll reception of one frame into
buf. Read moreSource§fn max_frame_size(&self) -> usize
fn max_frame_size(&self) -> usize
Return the largest supported raw frame size.
Source§fn t_frame_ms(&self) -> u32
fn t_frame_ms(&self) -> u32
Return the approximate airtime for a maximum-length frame.
Auto Trait Implementations§
impl Freeze for ModeledRadio
impl !RefUnwindSafe for ModeledRadio
impl !Send for ModeledRadio
impl !Sync for ModeledRadio
impl Unpin for ModeledRadio
impl !UnwindSafe for ModeledRadio
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)