Skip to main content

take

Function take 

Source
pub fn take(server: &str) -> Result<(), String>
Expand description

Spend one token toward server’s service, if it is rated. Ok(()) when unrated or a token was available; Err(msg) (a refusal the caller reports as a tool error, never a crash) when the bucket is dry.