#[derive(Debug,Clone)]
pub struct InstanceRef (Arc<Mutex<InstanceContainer>>);
-#[derive(Debug)]
pub struct Instance {
pub name : Arc<InstanceName>,
pub gs : GameState,
}
}
+impl Debug for Instance {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "Instance {{ name: {:?}, .. }}", &self.name)
+ }
+}
+
// ---------- Main API for instance lifecycle ----------
impl InstanceRef {
players : load_players,
}).map_err(|e| InternalError::JSONEncode(e))?,
};
- eprintln!("SRC {:?}", &src);
+ trace!("SessionRenderContext {:?}", &src);
src
};
+ info!("rendering /_/session for {:?} {:?}", &player, &iad);
+
Ok(Template::render("session",&c))
}