mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-26 08:34:55 +01:00
Make compile
This commit is contained in:
parent
e1c5a009ad
commit
940a5d4fe0
@ -99,25 +99,15 @@ pub struct Machine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Machine {
|
impl Machine {
|
||||||
pub fn new(name: String, location: String, perm: String) -> Machine {
|
pub fn new(name: String, perm: String) -> Machine {
|
||||||
Machine {
|
Machine {
|
||||||
name: name,
|
name: name,
|
||||||
location: location,
|
|
||||||
status: Status::Free,
|
|
||||||
perm: perm,
|
perm: perm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_blocked(&mut self, blocked: bool) {
|
|
||||||
if blocked {
|
|
||||||
self.status = Status::Blocked;
|
|
||||||
} else {
|
|
||||||
self.status = Status::Free;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MachineDB {
|
pub struct MachineDB {
|
||||||
db: lmdb::Database,
|
db: lmdb::Database,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user