2016-08-15 02:16:56 +02:00
|
|
|
//! File struct
|
|
|
|
|
|
|
|
/// A file
|
2016-09-15 16:35:07 +02:00
|
|
|
//TODO: Close on exec
|
2016-08-15 02:16:56 +02:00
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
|
|
pub struct File {
|
|
|
|
/// The scheme that this file refers to
|
|
|
|
pub scheme: usize,
|
|
|
|
/// The number the scheme uses to refer to this file
|
|
|
|
pub number: usize,
|
2016-10-15 04:12:21 +02:00
|
|
|
/// If events are on, this is the event ID
|
|
|
|
pub event: Option<usize>,
|
2016-08-15 02:16:56 +02:00
|
|
|
}
|