pub trait Factory {
type Result;
// Required methods
fn create_node(self, io: RemoteIo, info: NodeInfo) -> Self::Result;
fn create_directory(self, io: RemoteIo, info: DirectoryInfo) -> Self::Result;
fn create_file(self, io: RemoteIo, info: FileInfo) -> Self::Result;
fn create_symlink(self, io: RemoteIo, info: SymlinkInfo) -> Self::Result;
}Expand description
This trait is used so that clients can create their own wrappers around types exposed here.
Required Associated Types§
Required Methods§
fn create_node(self, io: RemoteIo, info: NodeInfo) -> Self::Result
fn create_directory(self, io: RemoteIo, info: DirectoryInfo) -> Self::Result
fn create_file(self, io: RemoteIo, info: FileInfo) -> Self::Result
fn create_symlink(self, io: RemoteIo, info: SymlinkInfo) -> Self::Result
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".