/// Reserve marks the Game Server as Reserved for a given duration, at which point
/// it will return the GameServer to a Ready state.
/// Do note, the smallest unit available in the time.Duration argument is one second.
Reserve marks the Game Server as Reserved for a given duration, at which point
it will return the GameServer to a Ready state.
Do note, the smallest unit available in the time.Duration argument is one second.
Reserve marks the Game Server as Reserved for a given duration at which point it will return the GameServer to a Ready state . Do note the smallest unit available in the time . Duration argument is one second .
pub async fn reserve(&mut self, duration: Duration) -> Result<()> {
        Ok(self
            .client
            .reserve(api::Duration {
                seconds: std::cmp::max(duration.as_secs() as i64, 1),
            })
            .await
            .map(|_| ())?)
    }
pub async fn reserve ( & mut self , duration : Duration ) -> Result < ( ) > { Ok ( self . client . reserve ( api :: Duration { seconds : std :: cmp :: max ( duration . as_secs ( ) as i64 , 1 ) , } ) . await . map ( | _ | ( ) ) ? ) }
Reserve marks the Game Server as Reserved for a given duration, at which point
it will return the GameServer to a Ready state.
Reserve marks the Game Server as Reserved for a given duration at which point it will return the GameServer to a Ready state .
&mut self
duration
Duration