fabaccess-bffh/bffhd/resource/claim.rs

23 lines
622 B
Rust
Raw Normal View History

2021-11-26 02:25:48 +01:00
use async_channel::Sender;
use crate::resource::Update;
#[derive(Debug)]
/// A claim on a resource grants permission to update state
///
/// This permission is not necessarily exclusive, depending on the resource in question.
pub struct Claim {
/// Sending end that can be used to send state updates to a resource.
pub tx: Sender<Update>,
}
#[derive(Debug)]
/// An interest on a resource indicates that an user wants a resource to be in a specific state
pub struct Interest {
}
#[derive(Debug)]
/// A notify indicates that an user wants to be informed about changes in a resources' state
pub struct Notify {
}