WIP: IdPool
This commit is contained in:
parent
dd9413c17e
commit
1ff19c6e4e
@ -10,6 +10,7 @@ use tempfile::NamedTempFile;
|
||||
|
||||
mod api;
|
||||
mod mpv_setup;
|
||||
mod util;
|
||||
|
||||
#[derive(Parser)]
|
||||
struct Args {
|
||||
|
1
src/util.rs
Normal file
1
src/util.rs
Normal file
@ -0,0 +1 @@
|
||||
mod id_pool;
|
13
src/util/id_pool.rs
Normal file
13
src/util/id_pool.rs
Normal file
@ -0,0 +1,13 @@
|
||||
pub struct IdPool {}
|
||||
|
||||
impl IdPool {
|
||||
pub fn new() -> Self {
|
||||
Self {}
|
||||
}
|
||||
|
||||
pub fn request_id(&self) -> u64 {
|
||||
0
|
||||
}
|
||||
|
||||
pub fn release_id(&self, id: u64) {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user