Skip to main content

WlanPhyImplNotifyLocalServerHandler

Trait WlanPhyImplNotifyLocalServerHandler 

Source
pub trait WlanPhyImplNotifyLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn on_critical_error(
        &mut self,
        request: Request<OnCriticalError, ___T>,
        responder: Responder<OnCriticalError, ___T>,
    ) -> impl Future<Output = ()>;
    fn on_country_code_change(
        &mut self,
        request: Request<OnCountryCodeChange, ___T>,
        responder: Responder<OnCountryCodeChange, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A server handler for the WlanPhyImplNotify protocol.

See WlanPhyImplNotify for more details.

Required Methods§

Source

fn on_critical_error( &mut self, request: Request<OnCriticalError, ___T>, responder: Responder<OnCriticalError, ___T>, ) -> impl Future<Output = ()>

Indicate to the receiver (wlanphy client) that the wlan PHY has encountered a critical error specifying a reason code. The client can decide to forward it to higher layers of the wlan stack, handle it itself or ignore it. The sender can decide to handle the error if the receiver responds with an error code. Some possible error codes are: NOT_SUPPORTED: receiver does not have support for handling the event. INTERNAL: Error encountered during processing (including error returned by a higher layer module if it was forwarded).

Source

fn on_country_code_change( &mut self, request: Request<OnCountryCodeChange, ___T>, responder: Responder<OnCountryCodeChange, ___T>, ) -> impl Future<Output = ()>

Indicate to the receiver (wlanphy client) that the firmware running on wlan hardware has detected a change in country code. The client can decide to forward it to higher layers of the wlan stack, handle it itself or ignore it. The sender can decide to handle the error if the receiver responds with an error code. Some possible error codes are: NOT_SUPPORTED: receiver does not have support for handling the event. INTERNAL: Error encountered during processing (including error returned by a higher layer module if it was forwarded). INVALID_ARGS: The country code is either missing or not in the correct format.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<___H, ___T> WlanPhyImplNotifyLocalServerHandler<___T> for Local<___H>
where ___H: WlanPhyImplNotifyServerHandler<___T>, ___T: Transport,

Source§

async fn on_critical_error( &mut self, request: Request<OnCriticalError, ___T>, responder: Responder<OnCriticalError, ___T>, )

Source§

async fn on_country_code_change( &mut self, request: Request<OnCountryCodeChange, ___T>, responder: Responder<OnCountryCodeChange, ___T>, )

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§