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