pub struct KernelConfig { /* private fields */ }
Expand description
Configuration of the fuse kernel module connection
Implementations§
Source§impl KernelConfig
impl KernelConfig
Sourcepub fn set_max_write(&mut self, value: u32) -> Result<u32, u32>
pub fn set_max_write(&mut self, value: u32) -> Result<u32, u32>
Set the maximum write size for a single request
On success returns the previous value. On error returns the nearest value which will succeed
Sourcepub fn set_max_readahead(&mut self, value: u32) -> Result<u32, u32>
pub fn set_max_readahead(&mut self, value: u32) -> Result<u32, u32>
Set the maximum readahead size
On success returns the previous value. On error returns the nearest value which will succeed
Sourcepub fn add_capabilities(&mut self, capabilities_to_add: u64) -> Result<(), u64>
pub fn add_capabilities(&mut self, capabilities_to_add: u64) -> Result<(), u64>
Add a set of capabilities.
On success returns Ok, else return bits of capabilities not supported when capabilities you provided are not all supported by kernel.
Sourcepub fn set_max_background(&mut self, value: u16) -> Result<u16, u16>
pub fn set_max_background(&mut self, value: u16) -> Result<u16, u16>
Set the maximum number of pending background requests. Such as readahead requests.
On success returns the previous value. On error returns the nearest value which will succeed
Sourcepub fn set_congestion_threshold(&mut self, value: u16) -> Result<u16, u16>
pub fn set_congestion_threshold(&mut self, value: u16) -> Result<u16, u16>
Set the threshold of background requests at which the kernel will consider the filesystem request queue congested. (it may then switch to sleeping instead of spin-waiting, for example)
On success returns the previous value. On error returns the nearest value which will succeed