Struct dtn7_plus::news::NewsBuilder
source · [−]pub struct NewsBuilder { /* private fields */ }
Implementations
sourceimpl NewsBuilder
impl NewsBuilder
pub fn new() -> Self
pub fn reply_to(self, news: &NewsBundle) -> Self
pub fn compression(self, comp: bool) -> Self
pub fn encryption(self, enc: bool) -> Self
pub fn message(self, msg: &str) -> Self
pub fn topic(self, topic: &str) -> Self
pub fn thread_id(self, tid: Uuid) -> Self
pub fn references(self, bid: &str) -> Self
pub fn tag(self, tag: &str) -> Self
pub fn signature(self, sig: Vec<u8>) -> Self
pub fn build(self) -> Result<News, NewsError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NewsBuilder
impl Send for NewsBuilder
impl Sync for NewsBuilder
impl Unpin for NewsBuilder
impl UnwindSafe for NewsBuilder
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