pub struct OwnStreamAuthorship { /* private fields */ }Expand description
This device’s exclusive turn to author its own next Store commit, held from reading the position through publishing the head that takes it.
Implementations§
Source§impl OwnStreamAuthorship
impl OwnStreamAuthorship
Sourcepub async fn local_commit_base(
self,
stream_id: AuthorStreamId,
) -> Result<LocalCommitBase, DbError>
pub async fn local_commit_base( self, stream_id: AuthorStreamId, ) -> Result<LocalCommitBase, DbError>
Read the ledger belonging to this uninterrupted local author claim.
Sourcepub async fn read_local_commit_state(
&self,
stream_id: AuthorStreamId,
) -> Result<LocalCommitState, DbError>
pub async fn read_local_commit_state( &self, stream_id: AuthorStreamId, ) -> Result<LocalCommitState, DbError>
Capture preparation inputs while retaining this claim through row staging.
Auto Trait Implementations§
impl Freeze for OwnStreamAuthorship
impl !RefUnwindSafe for OwnStreamAuthorship
impl Send for OwnStreamAuthorship
impl Sync for OwnStreamAuthorship
impl Unpin for OwnStreamAuthorship
impl UnsafeUnpin for OwnStreamAuthorship
impl !UnwindSafe for OwnStreamAuthorship
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more