redseat-api 0.17.0

Rust client for Redseat media servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! The cloud session token between runs.

/// Keeps the cloud session token between runs: the OS credential store (Windows
/// Credential Manager, the Keychain...). Calls may block on the OS. The token is a
/// credential: never log it.
pub trait TokenStore: Send + Sync {
    /// The saved token, if any.
    fn load(&self) -> Result<Option<String>, String>;
    fn save(&self, token: &str) -> Result<(), String>;
    /// Forgets the token. Not an error when there is none.
    fn clear(&self) -> Result<(), String>;
}