pub trait DhtOpHashExt: Clone + Sized {
    // Required methods
    fn into_kitsune(self) -> Arc<KitsuneOpHash>;
    fn into_kitsune_raw(self) -> KitsuneOpHash;
    fn from_kitsune(k: &Arc<KitsuneOpHash>) -> Self;
    fn from_kitsune_raw(k: KitsuneOpHash) -> Self;

    // Provided method
    fn to_kitsune(&self) -> Arc<KitsuneOpHash> { ... }
}
Expand description

Extension trait for holo/kitsune conversion

Required Methods§

source

fn into_kitsune(self) -> Arc<KitsuneOpHash>

convert into Arc<Kitsune> type

source

fn into_kitsune_raw(self) -> KitsuneOpHash

convert into Kitsune type

source

fn from_kitsune(k: &Arc<KitsuneOpHash>) -> Self

from Kitsune type

source

fn from_kitsune_raw(k: KitsuneOpHash) -> Self

from Kitsune type

Provided Methods§

source

fn to_kitsune(&self) -> Arc<KitsuneOpHash>

to Arc<Kitsune> type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DhtOpHashExt for DhtOpHash

Implementors§