Skip to main content

Factory

Trait Factory 

Source
pub trait Factory {
    type Result;

    // Required methods
    fn create_node(self, io: RemoteIo) -> Self::Result;
    fn create_directory(self, io: RemoteIo) -> Self::Result;
    fn create_file(self, io: RemoteIo, info: &FileInfo) -> Self::Result;
    fn create_symlink(self, io: RemoteIo, target: Vec<u8>) -> 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) -> Self::Result

Source

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

Source

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

Implementors§