pub type SessionDetachResult = Result<(), i32>;