pub struct FeedUpdate {
pub payload: Bytes,
pub index: u64,
pub index_next: u64,
}Expand description
Result of a feed lookup: the wrapped chunk payload plus the
indexes parsed from swarm-feed-index / swarm-feed-index-next.
Mirrors bee-js FeedPayloadResult.
Fields§
§payload: BytesRaw chunk payload (timestamp(8) || data).
index: u64Index of the returned update.
index_next: u64Index where the next update should be written (sequential
feeds: index + 1).
Trait Implementations§
Source§impl Clone for FeedUpdate
impl Clone for FeedUpdate
Source§fn clone(&self) -> FeedUpdate
fn clone(&self) -> FeedUpdate
Returns a duplicate 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 FeedUpdate
impl Debug for FeedUpdate
Source§impl PartialEq for FeedUpdate
impl PartialEq for FeedUpdate
impl Eq for FeedUpdate
impl StructuralPartialEq for FeedUpdate
Auto Trait Implementations§
impl !Freeze for FeedUpdate
impl RefUnwindSafe for FeedUpdate
impl Send for FeedUpdate
impl Sync for FeedUpdate
impl Unpin for FeedUpdate
impl UnsafeUnpin for FeedUpdate
impl UnwindSafe for FeedUpdate
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