fn usersessions_can_finalize(&mut self) -> bool {
        let interactive_sessions = get_interactive_user_sessions();

        // If we failed to check for interactive sessions, assume nobody
        // is logged in. Overall, we prefer forcibly finalizing updates
        // instead of getting stuck in a retry loop here.
        let sessions = interactive_sessions.unwrap_or_else(|e| {
            log::error!("failed to check for interactive sessions: {}", e);
            log::warn!("assuming no active sessions and proceeding anyway");
            vec![]
        });

        self.handle_interactive_sessions(&sessions)
    }
/// Determine whether to allow finalization based off of current state.
/// Returns a boolean indicating whether a finalization is permitted.
Determine whether to allow finalization based off of current state.
Returns a boolean indicating whether a finalization is permitted.
Determine whether to allow finalization based off of current state . Returns a boolean indicating whether a finalization is permitted .
fn usersessions_can_finalize(&mut self) -> bool {
        let interactive_sessions = get_interactive_user_sessions();
        // If we failed to check for interactive sessions, assume nobody
        // is logged in. Overall, we prefer forcibly finalizing updates
        // instead of getting stuck in a retry loop here.
        let sessions = interactive_sessions.unwrap_or_else(|e| {
            log::error!("failed to check for interactive sessions: {}", e);
            log::warn!("assuming no active sessions and proceeding anyway");
            vec![]
        });
        self.handle_interactive_sessions(&sessions)
    }
fn usersessions_can_finalize ( & mut self ) -> bool { let interactive_sessions = get_interactive_user_sessions ( ) ; // If we failed to check for interactive sessions, assume nobody // is logged in. Overall, we prefer forcibly finalizing updates // instead of getting stuck in a retry loop here. let sessions = interactive_sessions . unwrap_or_else ( | e | { log :: error ! ( " " e ) ; log :: warn ! ( " " ) ; vec ! [ ] } ) ; self . handle_interactive_sessions ( & sessions ) }
Determine whether to allow finalization based off of current state.
Determine whether to allow finalization based off of current state .
&mut self