pub struct DataLayout { /* private fields */ }Expand description
Data layout
Implementations§
Source§impl DataLayout
impl DataLayout
pub fn new() -> Self
Sourcepub fn get_layout_type(&self) -> &DataLayoutType
pub fn get_layout_type(&self) -> &DataLayoutType
Get the layout type.
Sourcepub fn set_layout_type(&mut self, layout_type: DataLayoutType)
pub fn set_layout_type(&mut self, layout_type: DataLayoutType)
Set the layout type.
Sourcepub fn get_block_size(&self) -> usize
pub fn get_block_size(&self) -> usize
Get the block size.
Sourcepub fn set_block_size(&mut self, size: usize)
pub fn set_block_size(&mut self, size: usize)
Set the block size.
Sourcepub fn get_stripe_size(&self) -> Option<usize>
pub fn get_stripe_size(&self) -> Option<usize>
Get the stripe size, if any.
Sourcepub fn set_stripe_size(&mut self, size: Option<usize>)
pub fn set_stripe_size(&mut self, size: Option<usize>)
Set the stripe size.
Sourcepub fn get_replication_factor(&self) -> usize
pub fn get_replication_factor(&self) -> usize
Get the replication factor.
Sourcepub fn set_replication_factor(&mut self, factor: usize)
pub fn set_replication_factor(&mut self, factor: usize)
Set the replication factor.
Trait Implementations§
Source§impl Clone for DataLayout
impl Clone for DataLayout
Source§fn clone(&self) -> DataLayout
fn clone(&self) -> DataLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DataLayout
impl RefUnwindSafe for DataLayout
impl Send for DataLayout
impl Sync for DataLayout
impl Unpin for DataLayout
impl UnsafeUnpin for DataLayout
impl UnwindSafe for DataLayout
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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