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