Skip to content

Commit 46031bf

Browse files
committed
final version 1.0
1 parent 1cf981e commit 46031bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl Graphul<()> {
308308

309309
// Get with state
310310
// Graphul::Get(my_state, "/", || async {});
311-
fn Get<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
311+
fn state_get<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
312312
where
313313
H: Handler<T, S>,
314314
T: 'static,
@@ -337,7 +337,7 @@ impl Graphul<()> {
337337

338338
// Post with state
339339
// Graphul::Post(my_state, "/", || async {});
340-
fn Post<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
340+
fn state_post<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
341341
where
342342
H: Handler<T, S>,
343343
T: 'static,
@@ -366,7 +366,7 @@ impl Graphul<()> {
366366

367367
// Put with state
368368
// Graphul::Put(my_state, "/", || async {});
369-
fn Put<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
369+
fn state_put<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
370370
where
371371
H: Handler<T, S>,
372372
T: 'static,
@@ -395,7 +395,7 @@ impl Graphul<()> {
395395

396396
// Delete with state
397397
// Graphul::Delete(my_state, "/", || async {});
398-
fn Delete<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
398+
fn state_delete<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
399399
where
400400
H: Handler<T, S>,
401401
T: 'static,
@@ -424,7 +424,7 @@ impl Graphul<()> {
424424

425425
// Patch with state
426426
// Graphul::Patch(my_state, "/", || async {});
427-
fn Patch<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
427+
fn state_patch<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
428428
where
429429
H: Handler<T, S>,
430430
T: 'static,
@@ -453,7 +453,7 @@ impl Graphul<()> {
453453

454454
// Options with state
455455
// Graphul::Options(my_state, "/", || async {});
456-
fn Options<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
456+
fn state_options<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
457457
where
458458
H: Handler<T, S>,
459459
T: 'static,
@@ -482,7 +482,7 @@ impl Graphul<()> {
482482

483483
// Trace with state
484484
// Graphul::Trace(my_state, "/", || async {});
485-
fn Trace<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
485+
fn state_trace<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
486486
where
487487
H: Handler<T, S>,
488488
T: 'static,
@@ -511,7 +511,7 @@ impl Graphul<()> {
511511

512512
// Head with state
513513
// Graphul::Head(my_state, "/", || async {});
514-
fn Head<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
514+
fn state_head<T, H, S>(state: S, path: &str, handler: H) -> Graphul<S>
515515
where
516516
H: Handler<T, S>,
517517
T: 'static,

0 commit comments

Comments
 (0)