Experiment with futures
This commit is contained in:
parent
907fbf95db
commit
2d3e3688fa
44 changed files with 2081 additions and 1242 deletions
|
|
@ -35,6 +35,7 @@ pub trait Policy {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct DefaultPolicy;
|
||||
|
||||
impl Policy for DefaultPolicy {}
|
||||
|
|
@ -46,6 +47,7 @@ pub trait ResourceLocator<R> {
|
|||
R: Resource;
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct DefaultLocator<P = DefaultPolicy> {
|
||||
phantom: PhantomData<P>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue