Skip to main content

MacAddrServerHandler

Trait MacAddrServerHandler 

Source
pub trait MacAddrServerHandler<___T: Transport = DriverChannel> {
    // Required methods
    fn get_address(
        &mut self,
        responder: Responder<GetAddress, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn get_features(
        &mut self,
        responder: Responder<GetFeatures, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn set_mode(
        &mut self,
        request: Request<SetMode, ___T>,
        responder: Responder<SetMode, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the MacAddr protocol.

See MacAddr for more details.

Required Methods§

Source

fn get_address( &mut self, responder: Responder<GetAddress, ___T>, ) -> impl Future<Output = ()> + Send

Gets this device’s MAC address.

Source

fn get_features( &mut self, responder: Responder<GetFeatures, ___T>, ) -> impl Future<Output = ()> + Send

Gets this device’s features.

Source

fn set_mode( &mut self, request: Request<SetMode, ___T>, responder: Responder<SetMode, ___T>, ) -> impl Future<Output = ()> + Send

Sets this device’s operating mode.

mode is one of the variants in [Mode], it’s guaranteed to be one of the reported modes in this device’s reported features. multicast_macs is only provided (though it can still be empty) when mode is MULTICAST_FILTER. multicast_macs is always guaranteed to be at most multicast_filter_count entries.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§