pub struct EspNowInterface<'a, R> { /* private fields */ }Implementations§
Source§impl<'a, R> EspNowInterface<'a, R>
impl<'a, R> EspNowInterface<'a, R>
pub fn new( radio: R, policy: ChannelPolicy, bitrate: BitrateBps, status: &'a EmbassyInterfaceStatus, ) -> Self
pub fn id(&self) -> InterfaceId
Sourcepub fn interface_id() -> InterfaceId
pub fn interface_id() -> InterfaceId
The id this interface will carry — for the caller that stands its EmbassyInterfaceStatus up under the same key before building the interface.
Trait Implementations§
Source§impl<R: EspNowRadio> Interface for EspNowInterface<'_, R>
impl<R: EspNowRadio> Interface for EspNowInterface<'_, R>
const HW_MTU: usize = ESP_NOW_HW_MTU
Source§const KIND: InterfaceKind = InterfaceKind::EspNow
const KIND: InterfaceKind = InterfaceKind::EspNow
The medium this interface speaks, which is also the namespace root of its id (
from_channel_tag).fn descriptor(&self) -> InterfaceDescriptor
Source§fn channel_tag(&self) -> &[u8] ⓘ
fn channel_tag(&self) -> &[u8] ⓘ
There is one hard contract for
channel_tag(): distinct bytes across distinct concurrent communication channels, and the same bytes across every reconnect and reboot for that effective channel. Read moreasync fn run<Seam: InterfaceSeam>(self, seam: Seam)
Auto Trait Implementations§
impl<'a, R> !RefUnwindSafe for EspNowInterface<'a, R>
impl<'a, R> !UnwindSafe for EspNowInterface<'a, R>
impl<'a, R> Freeze for EspNowInterface<'a, R>where
R: Freeze,
impl<'a, R> Send for EspNowInterface<'a, R>where
R: Send,
impl<'a, R> Sync for EspNowInterface<'a, R>where
R: Sync,
impl<'a, R> Unpin for EspNowInterface<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for EspNowInterface<'a, R>where
R: UnsafeUnpin,
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