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_read_with_suffix(self, enabled: bool) -> Self
pub fn with_read_with_suffix(self, enabled: bool) -> Self
Enable or disable suffix read simulation. Default: true.
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 Layer for SimulateLayer
impl Layer for SimulateLayer
Source§fn apply_service(&self, srv: Servicer) -> Servicer
fn apply_service(&self, srv: Servicer) -> Servicer
Intercept the operation service stack. Read more
Source§fn apply_context(
&self,
srv: Servicer,
inner: OperationContext,
) -> OperationContext
fn apply_context( &self, srv: Servicer, inner: OperationContext, ) -> OperationContext
Intercept the operation context (HTTP transport and executor). Read more
Auto Trait Implementations§
impl Freeze for SimulateLayer
impl RefUnwindSafe for SimulateLayer
impl Send for SimulateLayer
impl Sync for SimulateLayer
impl Unpin for SimulateLayer
impl UnsafeUnpin 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