Skip to content

Commit

Permalink
Parse request
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Sep 16, 2023
1 parent 13b6d46 commit 25f0c9d
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 7 deletions.
12 changes: 12 additions & 0 deletions spawn-rs/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ pub struct Context {
state: Any,
}

impl Default for Context {
fn default() -> Context {
Context {
state: Any::default(),
}
}
}

impl Context {
pub fn new() -> Self {
Default::default()
}

/// Returns a reference to the state of this [`Context`].
pub fn state(&self) -> &Any {
&self.state
Expand Down
Loading

0 comments on commit 25f0c9d

Please sign in to comment.