pub enum EntryOrigin {
Local,
Remote(u64),
}Expand description
The origin of an entry ingestion event.
Variants§
Local
The entry was probably created on this machine.
Remote(u64)
The entry was sourced from another source with an ID assigned by us. This is useful if you want to suppress the forwarding of entries to the peers from which the entry was originally sourced.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for EntryOrigin
impl<'arbitrary> Arbitrary<'arbitrary> for EntryOrigin
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for EntryOrigin
impl Clone for EntryOrigin
Source§fn clone(&self) -> EntryOrigin
fn clone(&self) -> EntryOrigin
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 EntryOrigin
impl Debug for EntryOrigin
Source§impl Hash for EntryOrigin
impl Hash for EntryOrigin
Source§impl Ord for EntryOrigin
impl Ord for EntryOrigin
Source§fn cmp(&self, other: &EntryOrigin) -> Ordering
fn cmp(&self, other: &EntryOrigin) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EntryOrigin
impl PartialEq for EntryOrigin
Source§impl PartialOrd for EntryOrigin
impl PartialOrd for EntryOrigin
impl Copy for EntryOrigin
impl Eq for EntryOrigin
impl StructuralPartialEq for EntryOrigin
Auto Trait Implementations§
impl Freeze for EntryOrigin
impl RefUnwindSafe for EntryOrigin
impl Send for EntryOrigin
impl Sync for EntryOrigin
impl Unpin for EntryOrigin
impl UnwindSafe for EntryOrigin
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<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