{"id":17866499,"url":"https://github.com/LightQuantumArchive/actix-signal","last_synced_at":"2025-03-21T07:31:47.987Z","repository":{"id":57479068,"uuid":"388285202","full_name":"LightQuantumArchive/actix-signal","owner":"LightQuantumArchive","description":"Manage the lifecycle of an actix actor with its address.","archived":false,"fork":false,"pushed_at":"2024-03-04T21:34:07.000Z","size":53,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:53:31.953Z","etag":null,"topics":["actix","actor","lifecycle","signal","stop","terminate"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LightQuantumArchive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-22T00:49:01.000Z","updated_at":"2025-01-13T23:18:46.000Z","dependencies_parsed_at":"2025-01-15T13:47:50.217Z","dependency_job_id":"eb44bc80-3a0b-43c4-b9b6-76e3db650563","html_url":"https://github.com/LightQuantumArchive/actix-signal","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"f3d9db35b404af33f72ad355411a1a426b5eef0c"},"previous_names":["lightquantumarchive/actix-signal","photonquantum/actix-signal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Factix-signal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Factix-signal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Factix-signal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Factix-signal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightQuantumArchive","download_url":"https://codeload.github.com/LightQuantumArchive/actix-signal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244758072,"owners_count":20505573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actix","actor","lifecycle","signal","stop","terminate"],"created_at":"2024-10-28T09:37:19.580Z","updated_at":"2025-03-21T07:31:47.703Z","avatar_url":"https://github.com/LightQuantumArchive.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actix-signal\n\n[![crates.io](https://img.shields.io/crates/v/actix-signal?style=flat-square)](https://crates.io/crates/actix-signal)\n[![Documentation](https://img.shields.io/docsrs/actix-signal?style=flat-square)](https://docs.rs/actix-signal)\n\nManage the lifecycle of an actix actor with its address.\n\nIf you want to stop/terminate an actor, you call `ActorContext::stop` or `ActorContext::terminate` within its execution context.\n\nHowever, sometimes you have access to its address only. This crate adds a bunch of methods to the address so that you\nmay stop or terminate the actor outside its running context.\n\n*Minimum supported rust version: 1.50.0*\n\n## Get Started\n\nAdd the following line to your `Cargo.toml`.\n\n```toml\nactix-signal = { version = \"0.1\", features = [\"derive\"] }\n```\n\n## Example\n\n```rust\nuse actix::{Actor, Context};\nuse actix_signal::SignalHandler;\n\n#[derive(SignalHandler)]\nstruct MyActor;\n\nimpl Actor for MyActor {\n    type Context = Context\u003cSelf\u003e;\n}\n\nlet actor = MyActor;\nlet addr = actor.start();\n\naddr.stop();        // Stop the actor\naddr.terminate();   // Terminate the actor\n```\n\n# Feature flags\n\n`derive` - Provide `#[derive(SignalHandler)]` proc-macro.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightQuantumArchive%2Factix-signal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLightQuantumArchive%2Factix-signal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightQuantumArchive%2Factix-signal/lists"}