pub enum FragmentOrigin {
Network {
addr: IpAddr,
},
Rest,
JRpc,
}
Expand description
identify the source of a fragment
Variants§
Network
trace back the origin of a fragment to a given network node. This will allow tracking back the origins of the fragment and eventually blacklisting the senders from sending us more fragment (in case they are invalids or so)
Rest
This marks the fragment is coming from the REST interface (a client wallet or another service).
JRpc
This marks the fragment is coming from the JRpc interface (a client wallet or another service).
Trait Implementations§
source§impl Clone for FragmentOrigin
impl Clone for FragmentOrigin
source§fn clone(&self) -> FragmentOrigin
fn clone(&self) -> FragmentOrigin
Returns a copy 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 FragmentOrigin
impl Debug for FragmentOrigin
source§impl<'de> Deserialize<'de> for FragmentOrigin
impl<'de> Deserialize<'de> for FragmentOrigin
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FragmentOrigin
impl Hash for FragmentOrigin
source§impl Ord for FragmentOrigin
impl Ord for FragmentOrigin
source§fn cmp(&self, other: &FragmentOrigin) -> Ordering
fn cmp(&self, other: &FragmentOrigin) -> 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<FragmentOrigin> for FragmentOrigin
impl PartialEq<FragmentOrigin> for FragmentOrigin
source§fn eq(&self, other: &FragmentOrigin) -> bool
fn eq(&self, other: &FragmentOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FragmentOrigin> for FragmentOrigin
impl PartialOrd<FragmentOrigin> for FragmentOrigin
source§fn partial_cmp(&self, other: &FragmentOrigin) -> Option<Ordering>
fn partial_cmp(&self, other: &FragmentOrigin) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FragmentOrigin
impl Serialize for FragmentOrigin
impl Copy for FragmentOrigin
impl Eq for FragmentOrigin
impl StructuralEq for FragmentOrigin
impl StructuralPartialEq for FragmentOrigin
Auto Trait Implementations§
impl RefUnwindSafe for FragmentOrigin
impl Send for FragmentOrigin
impl Sync for FragmentOrigin
impl Unpin for FragmentOrigin
impl UnwindSafe for FragmentOrigin
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