pub trait File: Read + Write + Seek + Debug { type Metadata: Metadata; // Required method fn metadata(&self) -> Result<Self::Metadata>; }