Struct winapi_util::file::Type [−][src]
pub struct Type(_);
Represents a Windows file type.
This wraps the result of GetFileType.
Methods
impl Type[src]
impl Typepub fn is_char(&self) -> bool[src]
pub fn is_char(&self) -> boolReturns true if this type represents a character file, which is typically an LPT device or a console.
pub fn is_disk(&self) -> bool[src]
pub fn is_disk(&self) -> boolReturns true if this type represents a disk file.
pub fn is_pipe(&self) -> bool[src]
pub fn is_pipe(&self) -> boolReturns true if this type represents a sock, named pipe or an anonymous pipe.
pub fn is_unknown(&self) -> bool[src]
pub fn is_unknown(&self) -> boolReturns true if this type is not known.
Note that this never corresponds to a failure.