Trait fuse_backend_rs::common::file_traits::FileSetLen

source ·
pub trait FileSetLen {
    // Required method
    fn set_len(&self, _len: u64) -> Result<()>;
}
Expand description

A trait for setting the size of a file.

This is equivalent to File’s set_len method, but wrapped in a trait so that it can be implemented for other types.

Required Methods§

source

fn set_len(&self, _len: u64) -> Result<()>

Set the size of this file.

This is the moral equivalent of ftruncate().

Implementations on Foreign Types§

source§

impl FileSetLen for File

source§

fn set_len(&self, len: u64) -> Result<()>

Implementors§