Struct winapi_util::file::Type
source · pub struct Type(/* private fields */);
Expand description
Represents a Windows file type.
This wraps the result of GetFileType
.
Implementations§
source§impl Type
impl Type
sourcepub fn is_char(&self) -> bool
pub fn is_char(&self) -> bool
Returns true if this type represents a character file, which is typically an LPT device or a console.
sourcepub fn is_pipe(&self) -> bool
pub fn is_pipe(&self) -> bool
Returns true if this type represents a sock, named pipe or an anonymous pipe.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if this type is not known.
Note that this never corresponds to a failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)