diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-08-27 09:45:12 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-08-27 09:45:12 +0200 |
| commit | bb41e396aca01fee9f81785681fac0a79d0fd9d8 (patch) | |
| tree | 94ebe4800a50c14abc413cbcabe9ffaaab7496ef /src/context.rs | |
| parent | 8bae725a803ee00bf5bc86b9fc0be6853b95115e (diff) | |
split event and enhance context
Diffstat (limited to 'src/context.rs')
| -rw-r--r-- | src/context.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs index 8b13789..bcc0b6d 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1 +1,9 @@ +pub struct Context<Data> { + pub data: Data, +} +impl<Data> Context<Data> { + pub fn new(data: Data) -> Self { + Self { data } + } +}
\ No newline at end of file |
