Skip to main content

Factory

Trait Factory 

Source
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§

Source

fn create_node(self, io: RemoteIo, info: NodeInfo) -> Self::Result

Source

fn create_directory(self, io: RemoteIo, info: DirectoryInfo) -> Self::Result

Source

fn create_file(self, io: RemoteIo, info: FileInfo) -> Self::Result

Implementors§