framesmith 0.1.0

A Rust library for controlling Samsung Frame TVs over the local network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::future::Future;

pub trait AuthTokenStore: Send + Sync + 'static {
    fn load_token(
        &self,
    ) -> impl Future<Output = Result<Option<String>, Box<dyn std::error::Error + Send + Sync>>> + Send;

    fn save_token(
        &self,
        token: &str,
    ) -> impl Future<Output = Result<(), Box<dyn std::error::Error + Send + Sync>>> + Send;
}