• Home
  • Raw
  • Download

Lines Matching +full:js +full:- +full:yaml

7 //     https://www.apache.org/licenses/LICENSE-2.0
48 "/openapi.yaml",
49 "text/yaml",
50 include_str!("../../../static/openapi.yaml"),
53 "/src/components/Map.js",
55 include_str!("../../../static/src/components/Map.js"),
58 "/src/components/DeviceInfo.js",
60 include_str!("../../../static/src/components/DeviceInfo.js"),
63 "/src/components/Orientation.js",
65 include_str!("../../../static/src/components/Orientation.js"),
118 fn new() -> Self { in new()
129 ) -> Result<()> { in handle_connection_events()
171 fn http_events(&self) -> Response<Body> { in http_events()
182 .header("content-type", "text/event-stream") in http_events()
187 fn http_set_position(&self, mac_address: MacAddress, position: Position) -> Response<Body> { in http_set_position()
188 log::info!("set-position({}, {})", mac_address, position); in http_set_position()
264 ) -> Response<Body> { in http_create_anchor()
265 log::info!("create-anchor({}, {})", mac_address, position); in http_create_anchor()
305 ) -> Response<Body> { in http_destroy_anchor()
306 log::info!("destroy-anchor({})", mac_address); in http_destroy_anchor()
334 fn http_get_state(&self) -> Response<Body> { in http_get_state()
335 log::info!("get-state()"); in http_get_state()
359 ) -> Option<pica::RangingMeasurement> { in estimate()
416 fn name(&self) -> &'static str { in name()
418 Event::DeviceAdded { .. } => "device-added", in name()
419 Event::DeviceRemoved { .. } => "device-removed", in name()
420 Event::DeviceUpdated { .. } => "device-updated", in name()
421 Event::NeighborUpdated { .. } => "neighbor-updated", in name()
430 ) -> Result<Response<Body>, Infallible> { in http_request()
437 .header("content-type", *mime) in http_request()
451 ["init-uci-device", mac_address] => { in http_request()
454 ["set-position", mac_address] => { in http_request()
457 ["create-anchor", mac_address] => { in http_request()
462 ["destroy-anchor", mac_address] => { in http_request()
467 ["get-state"] => context.http_get_state(), in http_request()
478 async fn serve(context: Context, tx: mpsc::Sender<PicaCommand>, web_port: u16) -> Result<()> { in serve()
498 async fn listen(tx: mpsc::Sender<PicaCommand>, uci_port: u16) -> Result<()> { in listen()
522 /// saved under the name `device-{handle}.pcapng`.
534 async fn main() -> Result<()> { in main()