async fn hotspot_remove_existing(&self) -> Result<(), CaptivePortalError> {
        let p = nonblock::Proxy::new(NM_BUSNAME, NM_SETTINGS_PATH, self.conn.clone());
        use super::generated::connections::Settings;
        match p.get_connection_by_uuid(HOTSPOT_UUID).await {
            Ok(connection_path) => {
                info!("Deleting old hotspot configuration {}", &connection_path);
                let p = nonblock::Proxy::new(NM_BUSNAME, connection_path, self.conn.clone());
                use super::generated::connection_nm::Connection;
                // Don't make this a hard error
                let _ = p.delete().await;
            },
            Err(_) => {},
        }
        Ok(())
    }
/// The hotspot that is created by this service has a unique id.
/// This method will search connections for this id and delete the respective connection.
///
/// This is necessary so that network manager does not try to auto connect to the hotspot
/// connection if nothing else can be found.
The hotspot that is created by this service has a unique id.
This method will search connections for this id and delete the respective connection.

This is necessary so that network manager does not try to auto connect to the hotspot
connection if nothing else can be found.
The hotspot that is created by this service has a unique id . This method will search connections for this id and delete the respective connection . This is necessary so that network manager does not try to auto connect to the hotspot connection if nothing else can be found .
async fn hotspot_remove_existing(&self) -> Result<(), CaptivePortalError> {
        let p = nonblock::Proxy::new(NM_BUSNAME, NM_SETTINGS_PATH, self.conn.clone());
        use super::generated::connections::Settings;
        match p.get_connection_by_uuid(HOTSPOT_UUID).await {
            Ok(connection_path) => {
                info!("Deleting old hotspot configuration {}", &connection_path);
                let p = nonblock::Proxy::new(NM_BUSNAME, connection_path, self.conn.clone());
                use super::generated::connection_nm::Connection;
                // Don't make this a hard error
                let _ = p.delete().await;
            },
            Err(_) => {},
        }
        Ok(())
    }
async fn hotspot_remove_existing ( & self ) -> Result < ( ) , CaptivePortalError > { let p = nonblock :: Proxy :: new ( NM_BUSNAME , NM_SETTINGS_PATH , self . conn . clone ( ) ) ; use super :: generated :: connections :: Settings ; match p . get_connection_by_uuid ( HOTSPOT_UUID ) . await { Ok ( connection_path ) => { info ! ( " " connection_path ) ; let p = nonblock :: Proxy :: new ( NM_BUSNAME , connection_path , self . conn . clone ( ) ) ; use super :: generated :: connection_nm :: Connection ; // Don't make this a hard error let _ = p . delete ( ) . await ; } , Err ( _ ) => { } , } Ok ( ( ) ) }
The hotspot that is created by this service has a unique id.
The hotspot that is created by this service has a unique id .
&self
&self