mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-11 01:53:23 +01:00
23 lines
622 B
Rust
23 lines
622 B
Rust
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 {
|
|
|
|
} |