[][src]Struct gcsf::GCSF

pub struct GCSF { /* fields omitted */ }

A FUSE file system which is linked to a Google Drive account.

Methods

impl GCSF[src]

pub fn with_config(config: Config) -> Result<Self, Error>[src]

Trait Implementations

impl Filesystem for GCSF[src]

fn init(&mut self, _req: &Request) -> Result<(), i32>[src]

Initialize filesystem. Called before any other filesystem method. Read more

fn destroy(&mut self, _req: &Request)[src]

Clean up filesystem. Called on filesystem exit. Read more

Read symbolic link.

fn mknod(
    &mut self,
    _req: &Request,
    _parent: u64,
    _name: &OsStr,
    _mode: u32,
    _rdev: u32,
    reply: ReplyEntry
)
[src]

Create file node. Create a regular file, character device, block device, fifo or socket node. Read more

Create a symbolic link.

Create a hard link.

fn open(&mut self, _req: &Request, _ino: u64, _flags: u32, reply: ReplyOpen)[src]

Open a file. Open flags (with the exception of O_CREAT, O_EXCL, O_NOCTTY and O_TRUNC) are available in flags. Filesystem may store an arbitrary file handle (pointer, index, etc) in fh, and use this in other all other file operations (read, write, flush, release, fsync). Filesystem may also implement stateless file I/O and not store anything in fh. There are also some flags (direct_io, keep_cache) which the filesystem may set, to change the way the file is opened. See fuse_file_info structure in <fuse_common.h> for more details. Read more

fn release(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _flags: u32,
    _lock_owner: u64,
    _flush: bool,
    reply: ReplyEmpty
)
[src]

Release an open file. Release is called when there are no more references to an open file: all file descriptors are closed and all memory mappings are unmapped. For every open call there will be exactly one release call. The filesystem may reply with an error, but error values are not returned to close() or munmap() which triggered the release. fh will contain the value set by the open method, or will be undefined if the open method didn't set any value. flags will contain the same flags as for open. Read more

fn fsync(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _datasync: bool,
    reply: ReplyEmpty
)
[src]

Synchronize file contents. If the datasync parameter is non-zero, then only the user data should be flushed, not the meta data. Read more

fn opendir(&mut self, _req: &Request, _ino: u64, _flags: u32, reply: ReplyOpen)[src]

Open a directory. Filesystem may store an arbitrary file handle (pointer, index, etc) in fh, and use this in other all other directory stream operations (readdir, releasedir, fsyncdir). Filesystem may also implement stateless directory I/O and not store anything in fh, though that makes it impossible to implement standard conforming directory stream operations in case the contents of the directory can change between opendir and releasedir. Read more

fn releasedir(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _flags: u32,
    reply: ReplyEmpty
)
[src]

Release an open directory. For every opendir call there will be exactly one releasedir call. fh will contain the value set by the opendir method, or will be undefined if the opendir method didn't set any value. Read more

fn fsyncdir(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _datasync: bool,
    reply: ReplyEmpty
)
[src]

Synchronize directory contents. If the datasync parameter is set, then only the directory contents should be flushed, not the meta data. fh will contain the value set by the opendir method, or will be undefined if the opendir method didn't set any value. Read more

fn setxattr(
    &mut self,
    _req: &Request,
    _ino: u64,
    _name: &OsStr,
    _value: &[u8],
    _flags: u32,
    _position: u32,
    reply: ReplyEmpty
)
[src]

Set an extended attribute.

fn getxattr(
    &mut self,
    _req: &Request,
    _ino: u64,
    _name: &OsStr,
    _size: u32,
    reply: ReplyXattr
)
[src]

Get an extended attribute. If size is 0, the size of the value should be sent with reply.size(). If size is not 0, and the value fits, send it with reply.data(), or reply.error(ERANGE) if it doesn't. Read more

fn listxattr(
    &mut self,
    _req: &Request,
    _ino: u64,
    _size: u32,
    reply: ReplyXattr
)
[src]

List extended attribute names. If size is 0, the size of the value should be sent with reply.size(). If size is not 0, and the value fits, send it with reply.data(), or reply.error(ERANGE) if it doesn't. Read more

fn removexattr(
    &mut self,
    _req: &Request,
    _ino: u64,
    _name: &OsStr,
    reply: ReplyEmpty
)
[src]

Remove an extended attribute.

fn access(&mut self, _req: &Request, _ino: u64, _mask: u32, reply: ReplyEmpty)[src]

Check file access permissions. This will be called for the access() system call. If the 'default_permissions' mount option is given, this method is not called. This method is not called under Linux kernel versions 2.4.x Read more

fn getlk(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _lock_owner: u64,
    _start: u64,
    _end: u64,
    _typ: u32,
    _pid: u32,
    reply: ReplyLock
)
[src]

Test for a POSIX file lock.

fn setlk(
    &mut self,
    _req: &Request,
    _ino: u64,
    _fh: u64,
    _lock_owner: u64,
    _start: u64,
    _end: u64,
    _typ: u32,
    _pid: u32,
    _sleep: bool,
    reply: ReplyEmpty
)
[src]

Acquire, modify or release a POSIX file lock. For POSIX threads (NPTL) there's a 1-1 relation between pid and owner, but otherwise this is not always the case. For checking lock ownership, 'fi->owner' must be used. The l_pid field in 'struct flock' should only be used to fill in this field in getlk(). Note: if the locking methods are not implemented, the kernel will still allow file locking to work locally. Hence these are only interesting for network filesystems and similar. Read more

fn bmap(
    &mut self,
    _req: &Request,
    _ino: u64,
    _blocksize: u32,
    _idx: u64,
    reply: ReplyBmap
)
[src]

Map block index within file to block index within device. Note: This makes sense only for block device backed filesystems mounted with the 'blkdev' option Read more

Auto Trait Implementations

impl Send for GCSF

impl !Sync for GCSF

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.