pub trait WifiDirectBackend {
type Error: Debug;
type Group: WifiDirectGroup;
// Required methods
async fn set_discovery(
&mut self,
mode: DiscoveryMode,
) -> Result<(), Self::Error>;
async fn form_group(&mut self, peer: MacAddress, intent: GoIntent);
async fn accept_invitation(&mut self, peer: MacAddress, intent: GoIntent);
async fn remove_group(&mut self);
async fn next_event(&mut self) -> WifiDirectEvent<Self::Group>;
// Provided methods
fn blocked(&self) -> Option<&'static str> { ... }
async fn join_group(&mut self, _peer: MacAddress) { ... }
}Required Associated Types§
Required Methods§
async fn set_discovery( &mut self, mode: DiscoveryMode, ) -> Result<(), Self::Error>
async fn form_group(&mut self, peer: MacAddress, intent: GoIntent)
async fn accept_invitation(&mut self, peer: MacAddress, intent: GoIntent)
async fn remove_group(&mut self)
async fn next_event(&mut self) -> WifiDirectEvent<Self::Group>
Provided Methods§
fn blocked(&self) -> Option<&'static str>
async fn join_group(&mut self, _peer: MacAddress)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".