pub struct LockHandler { /* private fields */ }
Implementations§
Source§impl LockHandler
impl LockHandler
pub fn new(client: FilesClient) -> Self
pub async fn list_for_path( &self, path: &str, include_children: bool, ) -> Result<Vec<LockEntity>>
pub async fn create( &self, path: &str, timeout: Option<i64>, ) -> Result<LockEntity>
pub async fn delete(&self, path: &str, token: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for LockHandler
impl Clone for LockHandler
Source§fn clone(&self) -> LockHandler
fn clone(&self) -> LockHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LockHandler
impl !RefUnwindSafe for LockHandler
impl Send for LockHandler
impl Sync for LockHandler
impl Unpin for LockHandler
impl !UnwindSafe for LockHandler
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