pub enum EventReceivedSource {
Migration,
Pushed {
from_id: Option<RostraId>,
from_node: Option<IrohNodeId>,
},
Pulled {
from_id: Option<RostraId>,
from_node: Option<IrohNodeId>,
task: Option<String>,
},
Local,
}Expand description
How we acquired an event.
Tracks the source and method by which we received an event, useful for debugging sync issues, understanding network propagation, and analytics.
Variants§
Migration
Event was backfilled during a database migration.
For events that existed before we started tracking reception info.
Pushed
Event was pushed to us by a peer.
Fields
§
from_node: Option<IrohNodeId>The iroh node that sent us this event (if known).
Pulled
We actively pulled/requested this event.
Fields
§
from_node: Option<IrohNodeId>The iroh node we pulled from (if known).
Local
Event was created locally by this node.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EventReceivedSource
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EventReceivedSource
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EventReceivedSource
impl Clone for EventReceivedSource
Source§impl Debug for EventReceivedSource
impl Debug for EventReceivedSource
Source§impl<__Context> Decode<__Context> for EventReceivedSource
impl<__Context> Decode<__Context> for EventReceivedSource
Source§impl Encode for EventReceivedSource
impl Encode for EventReceivedSource
impl Eq for EventReceivedSource
Source§impl PartialEq for EventReceivedSource
impl PartialEq for EventReceivedSource
Source§impl Serialize for EventReceivedSource
impl Serialize for EventReceivedSource
impl StructuralPartialEq for EventReceivedSource
Auto Trait Implementations§
impl Forget for EventReceivedSource
impl Freeze for EventReceivedSource
impl Move for EventReceivedSource
impl RefUnwindSafe for EventReceivedSource
impl Send for EventReceivedSource
impl Sync for EventReceivedSource
impl Unpin for EventReceivedSource
impl UnsafeUnpin for EventReceivedSource
impl UnwindSafe for EventReceivedSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<F, T> ExpectFrom<F> for T
impl<F, T> ExpectFrom<F> for T
fn expect_from(other: F) -> T
Source§impl<F, I> ExpectInto<I> for Fwhere
I: ExpectFrom<F>,
impl<F, I> ExpectInto<I> for Fwhere
I: ExpectFrom<F>,
fn expect_into(self) -> I
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more