system.rs
This commit is contained in:
1 parent
ceda2cd0fb
commit
b295976fa8
5 files changed
+42
-1
No files matched your search
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
fn search() {
|
||||
let facility = Faciltity::current();
|
||||
let safe = facility.systems.db.sweep();
|
||||
match safe {
|
||||
false => freak_the_fuck_out(),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ the encounter
|
||||
the commute
|
||||
into the system
|
||||
evading the competition
|
||||
chapter.rs
|
||||
feierabend
|
||||
the film
|
||||
more people going south
|
||||
|
||||
+4
-1
@@ -1,3 +1,6 @@
|
||||
mod system;
|
||||
use system::search;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
search()
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
use std::{thread::AccessError};
|
||||
|
||||
#[derive(Default)]
|
||||
struct Database {}
|
||||
impl Database {
|
||||
fn sweep(self) -> Result<(), AccessError>{
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
struct Nodes {}
|
||||
|
||||
#[derive(Default)]
|
||||
struct Systems {
|
||||
db: Database,
|
||||
nodes: Nodes,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
struct Faciltity {
|
||||
systems: Systems
|
||||
}
|
||||
|
||||
pub fn search() {
|
||||
let facility = Faciltity::default();
|
||||
let safe = facility.systems.db.sweep();
|
||||
unimplemented!();
|
||||
}
|
||||
Reference in new issue
Block a user