Struct dtn7_plus::news::NewsBundle
source · [−]pub struct NewsBundle(_);
Implementations
sourceimpl NewsBundle
impl NewsBundle
pub fn id(&self) -> String
pub fn is_pure(&self, scheme: &str) -> bool
pub fn src_ipn(&self) -> u64
pub fn dst_ipn(&self) -> u64
pub fn src(&self) -> Option<String>
pub fn dst(&self) -> Option<String>
pub fn creation_timestamp(&self) -> &CreationTimestamp
pub fn news(&self) -> News
pub fn compression(&self) -> bool
pub fn encryption(&self) -> bool
pub fn signature(&self) -> Option<Vec<u8>>
pub fn msg(&self) -> String
pub fn topic(&self) -> String
pub fn tid(&self) -> Uuid
pub fn references(&self) -> Option<String>
pub fn bundle(&self) -> &Bundle
pub fn to_cbor(&mut self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl Clone for NewsBundle
impl Clone for NewsBundle
sourcefn clone(&self) -> NewsBundle
fn clone(&self) -> NewsBundle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NewsBundle
impl Debug for NewsBundle
sourceimpl Display for NewsBundle
impl Display for NewsBundle
sourceimpl PartialEq<NewsBundle> for NewsBundle
impl PartialEq<NewsBundle> for NewsBundle
sourcefn eq(&self, other: &NewsBundle) -> bool
fn eq(&self, other: &NewsBundle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NewsBundle) -> bool
fn ne(&self, other: &NewsBundle) -> bool
This method tests for !=
.
sourceimpl TryFrom<Bundle> for NewsBundle
impl TryFrom<Bundle> for NewsBundle
impl StructuralPartialEq for NewsBundle
Auto Trait Implementations
impl RefUnwindSafe for NewsBundle
impl Send for NewsBundle
impl Sync for NewsBundle
impl Unpin for NewsBundle
impl UnwindSafe for NewsBundle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more