pub async fn stack_event(&mut self, event: stack::StackEvent) -> error::Result<()> {
        self.stats.events += 1;
        match event {
            stack::StackEvent::OnInterfaceStatusChange { info } => {
                // This event is not really hooked up (stack does not generate them), code here
                // just for completeness and to be ready then it gets hooked up.
                if let Some(current_info) = self.hal.get_interface(info.id).await {
                    self.update_state(&current_info).await;
                }
                Ok(())
            }
        }
    }
/// Processes an event coming from fuchsia.net.stack containing updates to
/// properties associated with an interface. `OnInterfaceStatusChange` event is raised when an
/// interface is enabled/disabled, connected/disconnected, or added/removed.
Processes an event coming from fuchsia.net.stack containing updates to
properties associated with an interface. `OnInterfaceStatusChange` event is raised when an
interface is enabled/disabled, connected/disconnected, or added/removed.
Processes an event coming from fuchsia . net . stack containing updates to properties associated with an interface . ` OnInterfaceStatusChange ` event is raised when an interface is enabled / disabled connected / disconnected or added / removed .
pub async fn stack_event(&mut self, event: stack::StackEvent) -> error::Result<()> {
        self.stats.events += 1;
        match event {
            stack::StackEvent::OnInterfaceStatusChange { info } => {
                // This event is not really hooked up (stack does not generate them), code here
                // just for completeness and to be ready then it gets hooked up.
                if let Some(current_info) = self.hal.get_interface(info.id).await {
                    self.update_state(&current_info).await;
                }
                Ok(())
            }
        }
    }
pub async fn stack_event ( & mut self , event : stack :: StackEvent ) -> error :: Result < ( ) > { self . stats . events += 1 ; match event { stack :: StackEvent :: OnInterfaceStatusChange { info } => { // This event is not really hooked up (stack does not generate them), code here // just for completeness and to be ready then it gets hooked up. if let Some ( current_info ) = self . hal . get_interface ( info . id ) . await { self . update_state ( & current_info ) . await ; } Ok ( ( ) ) } } }
Processes an event coming from fuchsia.net.stack containing updates to
properties associated with an interface.
Processes an event coming from fuchsia . net . stack containing updates to properties associated with an interface .
&mut self
event
stack::StackEvent