pub struct DynamoDbMutex { /* private fields */ }
Expand description
Mutex Struct
Implementations§
Source§impl DynamoDbMutex
impl DynamoDbMutex
pub fn new( region: Region, done_after_milli_seconds: u64, failed_after_milli_seconds: u64, running_after_milli_seconds: u64, table_name: Option<&str>, ) -> Self
Sourcepub async fn make_table(&self) -> Result<(), Error>
pub async fn make_table(&self) -> Result<(), Error>
Create Table
Sourcepub async fn lock(&self, mutex_code: &str) -> Result<DynamoDbMutexResult, Error>
pub async fn lock(&self, mutex_code: &str) -> Result<DynamoDbMutexResult, Error>
Execute Lock mutex_code : target code
Auto Trait Implementations§
impl Freeze for DynamoDbMutex
impl !RefUnwindSafe for DynamoDbMutex
impl Send for DynamoDbMutex
impl Sync for DynamoDbMutex
impl Unpin for DynamoDbMutex
impl !UnwindSafe for DynamoDbMutex
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