Struct btlib::FragmentRecord
source · pub struct FragmentRecord { /* private fields */ }
Expand description
Keeps track of which principal is storing a fragment.
Implementations§
source§impl FragmentRecord
impl FragmentRecord
sourcepub fn new(serial: u32, stored_by: VarHash) -> FragmentRecord
pub fn new(serial: u32, stored_by: VarHash) -> FragmentRecord
Creates a new FragmentRecord
whose serial
and stored_by
fields are set to
the given values.
Trait Implementations§
source§impl Clone for FragmentRecord
impl Clone for FragmentRecord
source§fn clone(&self) -> FragmentRecord
fn clone(&self) -> FragmentRecord
Returns a copy 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 FragmentRecord
impl Debug for FragmentRecord
source§impl<'de> Deserialize<'de> for FragmentRecord
impl<'de> Deserialize<'de> for FragmentRecord
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<FragmentRecord> for FragmentRecord
impl PartialEq<FragmentRecord> for FragmentRecord
source§fn eq(&self, other: &FragmentRecord) -> bool
fn eq(&self, other: &FragmentRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FragmentRecord
impl Serialize for FragmentRecord
impl Eq for FragmentRecord
impl StructuralEq for FragmentRecord
impl StructuralPartialEq for FragmentRecord
Auto Trait Implementations§
impl RefUnwindSafe for FragmentRecord
impl Send for FragmentRecord
impl Sync for FragmentRecord
impl Unpin for FragmentRecord
impl UnwindSafe for FragmentRecord
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