pub struct WriterLeaseStore { /* private fields */ }Implementations§
Source§impl WriterLeaseStore
impl WriterLeaseStore
pub fn new(heddle_dir: &Path) -> Self
pub fn reserve( &self, draft: WriterLeaseDraft, now: DateTime<Utc>, ) -> Result<WriterLeaseReserveOutcome>
pub fn authenticate_and_renew( &self, lease_id: &str, token: &str, now: DateTime<Utc>, ) -> Result<WriterLeaseAuthOutcome>
pub fn release( &self, lease_id: &str, token: &str, status: WriterLeaseStatus, now: DateTime<Utc>, ) -> Result<WriterLeaseAuthOutcome>
pub fn list(&self) -> Result<Vec<WriterLease>>
pub fn abandon_thread(&self, thread: &str, now: DateTime<Utc>) -> Result<()>
pub fn load(&self, lease_id: &str) -> Result<Option<WriterLease>>
Auto Trait Implementations§
impl Freeze for WriterLeaseStore
impl RefUnwindSafe for WriterLeaseStore
impl Send for WriterLeaseStore
impl Sync for WriterLeaseStore
impl Unpin for WriterLeaseStore
impl UnsafeUnpin for WriterLeaseStore
impl UnwindSafe for WriterLeaseStore
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