pub struct ContentAnnouncement {
pub announcer_node: [u8; 32],
pub mcid: Mcid,
pub endpoint: String,
}Expand description
A content_announcement record’s fields, read out of its payload —
mirrors macula_record:read_content_announcement/1. The optional
name/size/chunk_count metadata fields
(content_announcement_opts()) are not ported — direct-dial content
fetch doesn’t need them to resolve and dial; add them if a future
caller needs to prioritize candidates without fetching the manifest.
Fields§
§announcer_node: [u8; 32]§mcid: Mcid§endpoint: StringA dialable seed URL, e.g. "https://host:4433" — matches
macula_client:seed()’s own format, NOT a station_endpoint’s
split host/port.
Trait Implementations§
Source§impl Clone for ContentAnnouncement
impl Clone for ContentAnnouncement
Source§fn clone(&self) -> ContentAnnouncement
fn clone(&self) -> ContentAnnouncement
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 moreAuto Trait Implementations§
impl Freeze for ContentAnnouncement
impl RefUnwindSafe for ContentAnnouncement
impl Send for ContentAnnouncement
impl Sync for ContentAnnouncement
impl Unpin for ContentAnnouncement
impl UnsafeUnpin for ContentAnnouncement
impl UnwindSafe for ContentAnnouncement
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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