pub struct LeasePlace { /* private fields */ }Expand description
One place of a lease, taken for one open: a file of a user, or a stream whose bytes come from no such file. It goes back to its lease when it drops.
Implementations§
Source§impl LeasePlace
impl LeasePlace
Source§impl LeasePlace
impl LeasePlace
Sourcepub fn open(self, path: &Path) -> Result<LeasedFile<File>>
pub fn open(self, path: &Path) -> Result<LeasedFile<File>>
Open the file at path in this place. A failed open gives the place
back.
Sourcepub async fn open_async(self, path: &Path) -> Result<LeasedFile<File>>
pub async fn open_async(self, path: &Path) -> Result<LeasedFile<File>>
Open the file at path in this place, as Self::open.
Trait Implementations§
Source§impl Drop for LeasePlace
impl Drop for LeasePlace
Auto Trait Implementations§
impl Freeze for LeasePlace
impl RefUnwindSafe for LeasePlace
impl Send for LeasePlace
impl Sync for LeasePlace
impl Unpin for LeasePlace
impl UnsafeUnpin for LeasePlace
impl UnwindSafe for LeasePlace
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