pub struct SimulatedRadio { /* private fields */ }Expand description
Radio implementation backed by a SimulatedNetwork.
Implementations§
Trait Implementations§
Source§impl Clone for SimulatedRadio
impl Clone for SimulatedRadio
Source§fn clone(&self) -> SimulatedRadio
fn clone(&self) -> SimulatedRadio
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 SimulatedRadio
impl Radio for SimulatedRadio
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 SimulatedRadio
impl !RefUnwindSafe for SimulatedRadio
impl !Send for SimulatedRadio
impl !Sync for SimulatedRadio
impl Unpin for SimulatedRadio
impl !UnwindSafe for SimulatedRadio
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)