pub fn update(&mut self) -> UpdateState {
        match self.stack.lock(|stack| stack.poll()) {
            Ok(true) => UpdateState::Updated,
            Ok(false) => UpdateState::NoChange,
            Err(_) => UpdateState::Updated,
        }
    }
/// Process and update the state of the network.
///
/// # Note
/// This function should be called regularly before other network tasks to update the state of
/// all relevant network sockets.
///
/// # Returns
/// An update state corresponding with any changes in the underlying network.
Process and update the state of the network.
Process and update the state of the network .
pub fn update(&mut self) -> UpdateState {
        match self.stack.lock(|stack| stack.poll()) {
            Ok(true) => UpdateState::Updated,
            Ok(false) => UpdateState::NoChange,
            Err(_) => UpdateState::Updated,
        }
    }
pub fn update ( & mut self ) -> UpdateState { match self . stack . lock ( | stack | stack . poll ( ) ) { Ok ( true ) => UpdateState :: Updated , Ok ( false ) => UpdateState :: NoChange , Err ( _ ) => UpdateState :: Updated , } }
Process and update the state of the network.
Process and update the state of the network .
&mut self
An update state corresponding with any changes in the underlying network.
An update state corresponding with any changes in the underlying network .
&mut self
note
This function should be called regularly before other network tasks to update the state of
all relevant network sockets.
This function should be called regularly before other network tasks to update the state of all relevant network sockets .