pub trait MacAddrLocalServerHandler<___T: Transport = DriverChannel> {
// 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§
Sourcefn get_address(
&mut self,
responder: Responder<GetAddress, ___T>,
) -> impl Future<Output = ()>
fn get_address( &mut self, responder: Responder<GetAddress, ___T>, ) -> impl Future<Output = ()>
Gets this device’s MAC address.
Sourcefn get_features(
&mut self,
responder: Responder<GetFeatures, ___T>,
) -> impl Future<Output = ()>
fn get_features( &mut self, responder: Responder<GetFeatures, ___T>, ) -> impl Future<Output = ()>
Gets this device’s features.
Sourcefn set_mode(
&mut self,
request: Request<SetMode, ___T>,
responder: Responder<SetMode, ___T>,
) -> impl Future<Output = ()>
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".