PLUS-POSTECH / soma

Cross-platform CTF problem container manager
Apache License 2.0
24 stars 3 forks source link

Make Backend a trait #100

Closed Qwaz closed 5 years ago

Qwaz commented 5 years ago

We designed Backend as an enum because serde doesn't support serializing a Trat object. It involves a little awkward implementation of update method, because one update method should consider all variants of backends.

I took a look at typetag crate, and I think we can make Backend as a Trait with the help of this crate.