Enum kitsune_p2p_block::BlockTargetId
source · pub enum BlockTargetId {
Node(NodeId),
NodeSpace(NodeId, Arc<KitsuneSpace>),
Ip(Ipv4Addr),
}
Variants§
Trait Implementations§
source§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 PartialEq for BlockTargetId
impl PartialEq for BlockTargetId
source§fn eq(&self, other: &BlockTargetId) -> bool
fn eq(&self, other: &BlockTargetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockTargetId
impl StructuralPartialEq for BlockTargetId
Auto Trait Implementations§
impl Freeze for BlockTargetId
impl RefUnwindSafe for BlockTargetId
impl Send for BlockTargetId
impl Sync for BlockTargetId
impl Unpin for BlockTargetId
impl UnwindSafe for BlockTargetId
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