Struct cloud_filter::placeholder::OwnedPlaceholderHandle
source · pub struct OwnedPlaceholderHandle { /* private fields */ }
Expand description
An owned handle to a placeholder file/directory.
This closes the handle on drop.
Implementations§
source§impl OwnedPlaceholderHandle
impl OwnedPlaceholderHandle
sourcepub unsafe fn from_cfapi(handle: HANDLE) -> Self
pub unsafe fn from_cfapi(handle: HANDLE) -> Self
Create a new OwnedPlaceholderHandle from a handle returned by [CfOpenFileWithOplock].
§Safety
The handle must be valid and owned by the caller.
sourcepub unsafe fn from_win32(handle: HANDLE) -> Self
pub unsafe fn from_win32(handle: HANDLE) -> Self
Create a new OwnedPlaceholderHandle from a handle returned by [CreateFile][windows::Win32::Storage::FileSystem::CreateFileW] etc.
§Safety
The handle must be valid and owned by the caller.
pub const fn handle(&self) -> HANDLE
pub const fn handle_type(&self) -> PlaceholderHandleType
Trait Implementations§
source§impl Debug for OwnedPlaceholderHandle
impl Debug for OwnedPlaceholderHandle
Auto Trait Implementations§
impl Freeze for OwnedPlaceholderHandle
impl RefUnwindSafe for OwnedPlaceholderHandle
impl !Send for OwnedPlaceholderHandle
impl !Sync for OwnedPlaceholderHandle
impl Unpin for OwnedPlaceholderHandle
impl UnwindSafe for OwnedPlaceholderHandle
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