pub trait HostWrite {
type FileWrite: HostFileWrite;
type DirWrite: HostDirWrite;
// Required methods
fn into_file_writer(self) -> Result<Self::FileWrite, IoError>;
fn into_dir_writer(self) -> Result<Self::DirWrite, IoError>;
}Expand description
Host writer.
Can be turned into either file or directory writer.
Required Associated Types§
type FileWrite: HostFileWrite
type DirWrite: HostDirWrite
Required Methods§
fn into_file_writer(self) -> Result<Self::FileWrite, IoError>
fn into_dir_writer(self) -> Result<Self::DirWrite, IoError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".