Struct winsafe::guard::CloseClipboardGuard
source · pub struct CloseClipboardGuard<'a> { /* private fields */ }
Available on crate features
kernel
and user
only.Expand description
RAII implementation for clipboard which automatically calls
CloseClipboard
when the object goes out of scope.
Implementations§
source§impl<'a> CloseClipboardGuard<'a>
impl<'a> CloseClipboardGuard<'a>
sourcepub const unsafe fn new(hwnd: PhantomData<&'a ()>) -> Self
pub const unsafe fn new(hwnd: PhantomData<&'a ()>) -> Self
Constructs the guard by taking ownership of the handle.
§Safety
Be sure you must call
CloseClipboard
at the end of scope.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CloseClipboardGuard<'a>
impl<'a> RefUnwindSafe for CloseClipboardGuard<'a>
impl<'a> Send for CloseClipboardGuard<'a>
impl<'a> Sync for CloseClipboardGuard<'a>
impl<'a> Unpin for CloseClipboardGuard<'a>
impl<'a> UnwindSafe for CloseClipboardGuard<'a>
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