pub struct ErasureCodedObject {
pub profile: &'static str,
pub original_len: usize,
pub k: u8,
pub m: u8,
pub shard_len: usize,
pub data_shards: Vec<Vec<u8>>,
pub parity_shards: Vec<Vec<u8>>,
}Fields§
§profile: &'static str§original_len: usize§k: u8§m: u8§shard_len: usize§data_shards: Vec<Vec<u8>>§parity_shards: Vec<Vec<u8>>Trait Implementations§
Source§impl Clone for ErasureCodedObject
impl Clone for ErasureCodedObject
Source§fn clone(&self) -> ErasureCodedObject
fn clone(&self) -> ErasureCodedObject
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 moreSource§impl Debug for ErasureCodedObject
impl Debug for ErasureCodedObject
Source§impl PartialEq for ErasureCodedObject
impl PartialEq for ErasureCodedObject
Source§fn eq(&self, other: &ErasureCodedObject) -> bool
fn eq(&self, other: &ErasureCodedObject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErasureCodedObject
impl Serialize for ErasureCodedObject
impl Eq for ErasureCodedObject
impl StructuralPartialEq for ErasureCodedObject
Auto Trait Implementations§
impl Freeze for ErasureCodedObject
impl RefUnwindSafe for ErasureCodedObject
impl Send for ErasureCodedObject
impl Sync for ErasureCodedObject
impl Unpin for ErasureCodedObject
impl UnsafeUnpin for ErasureCodedObject
impl UnwindSafe for ErasureCodedObject
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