Skip to main content

end_container_session

Function end_container_session 

Source
pub fn end_container_session(
    home: &dyn ContainerHome,
    project: &str,
    sid: &str,
    read: &[&dyn Zone],
    zone: &dyn Zone,
    admit: &mut dyn FnMut() -> Result<Box<dyn Hold>, String>,
) -> Result<Outcome, String>
Expand description

Prove, import and remove one session of a container agent: see the module’s text. read are the zones that may hold the conversation and zone is where what the store lacks is imported, as for end_session; admit is the caller’s last word, run after the proof and before anything is removed (an Err stops with nothing removed; what it returns is held until the removal is done). A session the container no longer holds is already ended: Ok with nothing counted. Every failure removes nothing, in the container or here.