pub struct Handle {
file: Option<File>,
is_std: bool,
dev: u64,
ino: u64,
}
Fields§
§file: Option<File>
§is_std: bool
§dev: u64
§ino: u64
Implementations§
source§impl Handle
impl Handle
pub fn from_path<P: AsRef<Path>>(p: P) -> Result<Handle>
pub fn from_file(file: File) -> Result<Handle>
pub fn from_std(file: File) -> Result<Handle>
pub fn stdin() -> Result<Handle>
pub fn stdout() -> Result<Handle>
pub fn stderr() -> Result<Handle>
pub fn as_file(&self) -> &File
pub fn as_file_mut(&mut self) -> &mut File
pub fn dev(&self) -> u64
pub fn ino(&self) -> u64
Trait Implementations§
impl Eq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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