Enum kitsune_p2p_block::BlockTarget
source · pub enum BlockTarget {
Node(NodeId, NodeBlockReason),
NodeSpace(NodeId, Arc<KitsuneSpace>, NodeSpaceBlockReason),
Ip(Ipv4Addr, IpBlockReason),
}
Variants§
Node(NodeId, NodeBlockReason)
NodeSpace(NodeId, Arc<KitsuneSpace>, NodeSpaceBlockReason)
Ip(Ipv4Addr, IpBlockReason)
Trait Implementations§
source§impl Clone for BlockTarget
impl Clone for BlockTarget
source§fn clone(&self) -> BlockTarget
fn clone(&self) -> BlockTarget
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 From<BlockTarget> for BlockTargetId
impl From<BlockTarget> for BlockTargetId
source§fn from(block_target: BlockTarget) -> Self
fn from(block_target: BlockTarget) -> Self
Converts to this type from the input type.
source§impl Hash for BlockTarget
impl Hash for BlockTarget
source§impl PartialEq for BlockTarget
impl PartialEq for BlockTarget
source§fn eq(&self, other: &BlockTarget) -> bool
fn eq(&self, other: &BlockTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockTarget
impl StructuralPartialEq for BlockTarget
Auto Trait Implementations§
impl Freeze for BlockTarget
impl RefUnwindSafe for BlockTarget
impl Send for BlockTarget
impl Sync for BlockTarget
impl Unpin for BlockTarget
impl UnwindSafe for BlockTarget
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