pub struct DeltaElements { /* private fields */ }
Expand description
Defines the elements for an RRDP delta.
Implementations§
source§impl DeltaElements
impl DeltaElements
pub fn new( publishes: Vec<PublishElement>, updates: Vec<UpdateElement>, withdraws: Vec<WithdrawElement> ) -> Self
pub fn unpack( self ) -> (Vec<PublishElement>, Vec<UpdateElement>, Vec<WithdrawElement>)
pub fn len(&self) -> usize
pub fn size_approx(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn publishes(&self) -> &Vec<PublishElement>
pub fn updates(&self) -> &Vec<UpdateElement>
pub fn withdraws(&self) -> &Vec<WithdrawElement>
Trait Implementations§
source§impl Add for DeltaElements
impl Add for DeltaElements
source§impl AddAssign for DeltaElements
impl AddAssign for DeltaElements
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl Clone for DeltaElements
impl Clone for DeltaElements
source§fn clone(&self) -> DeltaElements
fn clone(&self) -> DeltaElements
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 DeltaElements
impl Debug for DeltaElements
source§impl Default for DeltaElements
impl Default for DeltaElements
source§fn default() -> DeltaElements
fn default() -> DeltaElements
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeltaElements
impl<'de> Deserialize<'de> for DeltaElements
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 From<PublishDelta> for DeltaElements
impl From<PublishDelta> for DeltaElements
source§fn from(d: PublishDelta) -> Self
fn from(d: PublishDelta) -> Self
Converts to this type from the input type.
source§impl From<StagedElements> for DeltaElements
impl From<StagedElements> for DeltaElements
source§fn from(staged: StagedElements) -> Self
fn from(staged: StagedElements) -> Self
Converts to this type from the input type.
source§impl PartialEq for DeltaElements
impl PartialEq for DeltaElements
source§fn eq(&self, other: &DeltaElements) -> bool
fn eq(&self, other: &DeltaElements) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeltaElements
impl Serialize for DeltaElements
impl Eq for DeltaElements
impl StructuralEq for DeltaElements
impl StructuralPartialEq for DeltaElements
Auto Trait Implementations§
impl RefUnwindSafe for DeltaElements
impl Send for DeltaElements
impl Sync for DeltaElements
impl Unpin for DeltaElements
impl UnwindSafe for DeltaElements
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.