Module safe_core::nfs [] [src]

NFS utilities

Modules

ffi

FFI representation of NFS structures

file_helper

FileHelper provides functions for CRUD on file

Structs

DEFAULT_PRIVATE_DIRS

Default Directories to be created at registration

DEFAULT_PUBLIC_DIRS

publicly accessible default directories to be created upon registration

File

Representation of a File to be put into the network. Could be any kind of file: text, music, video, etc.

Reader

Reader is used to read contents of a File. It can read in chunks if the file happens to be very large

Writer

Writer is used to write contents to a File and especially in chunks if the file happens to be too large

Enums

Mode

Mode of the writer

NfsError

NFS Errors

Functions

create_dir

create a new directory emulation

create_std_dirs

A registration helper function to create the set of default dirs in the users root directory. Note: It does not check whether those might exits already.

Type Definitions

NfsFuture

Helper type for futures that can result in NfsError