pub struct BlockStorageCloneSettings {
pub disallow_networking: bool,
pub detached: bool,
pub transform: bool,
pub clear: bool,
}Fields§
§disallow_networking: boolDo not allow to use networking in the clone.
detached: boolDetach as child instance from the parent.
transform: boolAllow to transform blocks while get them. Example: Decrypt block when get with encrypted Cid.
clear: boolClone with empty caches.
Implementations§
Source§impl BlockStorageCloneSettings
impl BlockStorageCloneSettings
pub fn new() -> Self
pub fn without_networking(self) -> Self
pub fn with_detached(self) -> Self
pub fn with_transform(self) -> Self
pub fn with_clear(self) -> Self
Trait Implementations§
Source§impl Clone for BlockStorageCloneSettings
impl Clone for BlockStorageCloneSettings
Source§fn clone(&self) -> BlockStorageCloneSettings
fn clone(&self) -> BlockStorageCloneSettings
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 BlockStorageCloneSettings
impl Debug for BlockStorageCloneSettings
Source§impl Default for BlockStorageCloneSettings
impl Default for BlockStorageCloneSettings
Source§fn default() -> BlockStorageCloneSettings
fn default() -> BlockStorageCloneSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockStorageCloneSettings
impl RefUnwindSafe for BlockStorageCloneSettings
impl Send for BlockStorageCloneSettings
impl Sync for BlockStorageCloneSettings
impl Unpin for BlockStorageCloneSettings
impl UnsafeUnpin for BlockStorageCloneSettings
impl UnwindSafe for BlockStorageCloneSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more