Skip to main content

MacAddrLocalServerHandler

Trait MacAddrLocalServerHandler 

Source
pub trait MacAddrLocalServerHandler<___T = DriverChannel>
where ___T: Transport,
{ // Required methods fn get_address( &mut self, responder: Responder<GetAddress, ___T>, ) -> impl Future<Output = ()>; fn get_features( &mut self, responder: Responder<GetFeatures, ___T>, ) -> impl Future<Output = ()>; fn set_mode( &mut self, request: Request<SetMode, ___T>, responder: Responder<SetMode, ___T>, ) -> impl Future<Output = ()>; }
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 = ()>

Gets this device’s MAC address.

Source

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

Gets this device’s features.

Source

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

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

Implementations on Foreign Types§

Source§

impl<___H, ___T> MacAddrLocalServerHandler<___T> for Local<___H>
where ___H: MacAddrServerHandler<___T>, ___T: Transport,

Source§

async fn get_address(&mut self, responder: Responder<GetAddress, ___T>)

Source§

async fn get_features(&mut self, responder: Responder<GetFeatures, ___T>)

Source§

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

Implementors§