pub struct SimulateLayer { /* private fields */ }Expand description
Simulate missing capabilities for backends in a configurable way.
Implementations§
Source§impl SimulateLayer
impl SimulateLayer
Sourcepub fn with_list_recursive(self, enabled: bool) -> Self
pub fn with_list_recursive(self, enabled: bool) -> Self
Enable or disable recursive list simulation. Default: true.
Sourcepub fn with_stat_dir(self, enabled: bool) -> Self
pub fn with_stat_dir(self, enabled: bool) -> Self
Enable or disable stat dir simulation. Default: true.
Sourcepub fn with_create_dir(self, enabled: bool) -> Self
pub fn with_create_dir(self, enabled: bool) -> Self
Enable or disable create_dir simulation. Default: true.
Sourcepub fn with_delete_recursive(self, enabled: bool) -> Self
pub fn with_delete_recursive(self, enabled: bool) -> Self
Enable or disable recursive delete simulation. Default: true.
Trait Implementations§
Source§impl Clone for SimulateLayer
impl Clone for SimulateLayer
Source§fn clone(&self) -> SimulateLayer
fn clone(&self) -> SimulateLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulateLayer
impl Debug for SimulateLayer
Source§impl Default for SimulateLayer
impl Default for SimulateLayer
Source§impl<A: Access> Layer<A> for SimulateLayer
impl<A: Access> Layer<A> for SimulateLayer
Source§type LayeredAccess = SimulateAccessor<A>
type LayeredAccess = SimulateAccessor<A>
The layered accessor that returned by this layer.
Source§fn layer(&self, inner: A) -> Self::LayeredAccess
fn layer(&self, inner: A) -> Self::LayeredAccess
Intercept the operations on the underlying storage.
Auto Trait Implementations§
impl Freeze for SimulateLayer
impl RefUnwindSafe for SimulateLayer
impl Send for SimulateLayer
impl Sync for SimulateLayer
impl Unpin for SimulateLayer
impl UnwindSafe for SimulateLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more