4KBRNRLMAVPUVMU2EYNRJTTOZPQRGV2YHZNMLNGBA4Z3QAXKWNKAC
IA2CJ4HDSST6MPDLX2FVE2ZZR7EP5O6AIAUFGZIMWJ6NODVMKOKAC
VEN5WJYRT23IT77JAAZ5CJRSW3GUTTNMAECT3WVTHQA34HI4646AC
K7M77GF5ILC4KKKYPTLZRZ2OND7DOQDQNRYKM3N6XV2DMJURYA3QC
FTI67CGF4MMPDFA6YJN6UKOADQLFAECKGYPTWSPSALVQK76BJMJAC
F2QYIRKBFYFWSTB7Z5CNGSZVYI6XQO3MHPUHJLBHPGLIOG7UNVNQC
AIF5IVL7B5S2X3N4RLS6GNKUCASQZPOH6NCVGECUFHQ5ZUJVDU6QC
B2BZZXWMRR2FYPBMSSQ6WBCOWX5R3JOXSESX4LFUAQF3FOS4APBQC
B2MSSEJB4GIBFA6F2HRMK7FXUHJBZIZFK6NOHY7YZUSHRB53URGQC
42MNZNAH4QWQPYFUEMXD2OCDH5PRANP4IXEIK3SBYEOMJXTOKQ7QC
AMFKSNF2C3Y4Z5UNFMUFRSZUOWKQCBMCRFFYW44ZJLSPGVI3VFOAC
FKTISISENWXRFIQHUBCSWQAAN7OWUWIOD6R64YEQOBZ6VENZUWYQC
let session_id = match env::var("HISTDB_RS_SESSION_ID") {
Err(err) => match err {
env::VarError::NotPresent => Err(Error::MissingSessionID),
env::VarError::NotUnicode(_) => Err(Error::InvalidSessionIDEnvVar(err)),
},
Ok(s) => Uuid::parse_str(&s).map_err(Error::InvalidSessionID),
}?;
let session_id = session_id_from_env()?;
let session_id = match env::var("HISTDB_RS_SESSION_ID") {
Err(err) => match err {
env::VarError::NotPresent => Err(Error::MissingSessionID),
env::VarError::NotUnicode(_) => Err(Error::InvalidSessionIDEnvVar(err)),
},
Ok(s) => Uuid::parse_str(&s).map_err(Error::InvalidSessionID),
}?;
let session_id = session_id_from_env()?;
}
}
pub fn session_id_from_env() -> Result<Uuid, Error> {
match env::var("HISTDB_RS_SESSION_ID") {
Err(err) => match err {
env::VarError::NotPresent => Err(Error::MissingSessionID),
env::VarError::NotUnicode(_) => Err(Error::InvalidSessionIDEnvVar(err)),
},
Ok(s) => Uuid::parse_str(&s).map_err(Error::InvalidSessionID),
if !self.entries.contains_key(&finish.session_id) {
if self.state.disabled_session.contains(&finish.session_id) {
return Err(Error::DisabledSession(finish.session_id));
}
if !self.state.entries.contains_key(&finish.session_id) {
fn disable_session(&mut self, session_id: Uuid) -> Result<RunState, Error> {
self.state
.entries
.remove(&session_id)
.expect("already tested if exists");
self.state.disabled_session.insert(session_id);
Ok(RunState::Continue)
}
fn enable_session(&mut self, session_id: Uuid) -> Result<RunState, Error> {
self.state.disabled_session.remove(&session_id);
Ok(RunState::Continue)
}