Skip to main content

classify

Function classify 

Source
pub(super) fn classify(token: &str, stored: &[u8], expires: u64) -> Token
Expand description

Classifies a stored token value as both passes read it.

A foreign value is exactly an owner and a device, while every value this server writes has an expiry field, so a value with none is adoptable whatever its expiry would be. A value is restorable only when it carries exactly the recorded expiry, the adoption’s own write.