Skip to main content

WifiDirectBackend

Trait WifiDirectBackend 

Source
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§

Source

async fn set_discovery( &mut self, mode: DiscoveryMode, ) -> Result<(), Self::Error>

Source

async fn form_group(&mut self, peer: MacAddress, intent: GoIntent)

Source

async fn accept_invitation(&mut self, peer: MacAddress, intent: GoIntent)

Source

async fn remove_group(&mut self)

Source

async fn next_event(&mut self) -> WifiDirectEvent<Self::Group>

Provided Methods§

Source

fn blocked(&self) -> Option<&'static str>

Source

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".

Implementors§