pub fn reserve_slot(&mut self) -> Result<(), Box<dyn Error>> {
        if self.capacity <= self.occupied {
            return Err(ExaError::Blocking("host has no remaining capacity").into());
        }
        self.occupied += 1;
        Ok(())
    }
/// Increments occupied by 1, if there is remaining capacity. Successful
/// calls mean you need to free_slot later when you leave the Host.
Increments occupied by 1, if there is remaining capacity. Successful
calls mean you need to free_slot later when you leave the Host.
Increments occupied by 1 if there is remaining capacity . Successful calls mean you need to free_slot later when you leave the Host .
pub fn reserve_slot(&mut self) -> Result<(), Box<dyn Error>> {
        if self.capacity <= self.occupied {
            return Err(ExaError::Blocking("host has no remaining capacity").into());
        }
        self.occupied += 1;
        Ok(())
    }
pub fn reserve_slot ( & mut self ) -> Result < ( ) , Box < dyn Error > > { if self . capacity <= self . occupied { return Err ( ExaError :: Blocking ( " " ) . into ( ) ) ; } self . occupied += 1 ; Ok ( ( ) ) }
Increments occupied by 1, if there is remaining capacity.
Increments occupied by 1 if there is remaining capacity .
&mut self
&mut self