pub trait WorkStateAuthor: Send + Sync {
// Required methods
fn post<'life0, 'life1, 'async_trait>(
&'life0 self,
ticket: &'life1 WorkTicket,
) -> Pin<Box<dyn Future<Output = Result<TicketRef, SourceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ticket: &'life1 TicketRef,
content: &'life2 WorkTicket,
expected: &'life3 SourceVersion,
) -> Pin<Box<dyn Future<Output = Result<SourceVersion, SourceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Required Methods§
Sourcefn post<'life0, 'life1, 'async_trait>(
&'life0 self,
ticket: &'life1 WorkTicket,
) -> Pin<Box<dyn Future<Output = Result<TicketRef, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn post<'life0, 'life1, 'async_trait>(
&'life0 self,
ticket: &'life1 WorkTicket,
) -> Pin<Box<dyn Future<Output = Result<TicketRef, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create. The source assigns the ref; id authority lives behind the seam.
Sourcefn update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ticket: &'life1 TicketRef,
content: &'life2 WorkTicket,
expected: &'life3 SourceVersion,
) -> Pin<Box<dyn Future<Output = Result<SourceVersion, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ticket: &'life1 TicketRef,
content: &'life2 WorkTicket,
expected: &'life3 SourceVersion,
) -> Pin<Box<dyn Future<Output = Result<SourceVersion, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Repost-in-place, compare-and-swap on the version. A conflicting concurrent edit is a detected conflict, never a silent clobber.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".