MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / unregister

Method unregister

nodedb-cluster/src/distributed_spatial/geofence.rs:73–79  ·  view source on GitHub ↗

Unregister a geofence by ID.

(&mut self, geofence_id: &str)

Source from the content-addressed store, hash-verified

71
72 /// Unregister a geofence by ID.
73 pub fn unregister(&mut self, geofence_id: &str) {
74 self.geofences.retain(|g| g.id != geofence_id);
75 // Remove from all entity states.
76 for state in self.entity_state.values_mut() {
77 state.remove(geofence_id);
78 }
79 }
80
81 /// Evaluate a point update for an entity. Returns enter/exit events.
82 ///

Callers 1

unregister_geofenceFunction · 0.45

Calls 1

removeMethod · 0.45

Tested by 1

unregister_geofenceFunction · 0.36