pub struct HandlePair {
pub original: HANDLE,
pub duplicated: Option<HANDLE>,
}Fields§
§original: HANDLE§duplicated: Option<HANDLE>Implementations§
Source§impl HandlePair
impl HandlePair
pub fn new(original: HANDLE, duplicated: Option<HANDLE>) -> Self
pub fn _get_handle(&self) -> HANDLE
pub fn get_duplicated(&self) -> HANDLE
pub fn has_original(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn close_all(&self)
pub fn close_duplicated(&self)
Trait Implementations§
Source§impl Clone for HandlePair
impl Clone for HandlePair
Source§impl Debug for HandlePair
impl Debug for HandlePair
impl Send for HandlePair
impl Sync for HandlePair
Auto Trait Implementations§
impl Freeze for HandlePair
impl RefUnwindSafe for HandlePair
impl Unpin for HandlePair
impl UnwindSafe for HandlePair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more