Trait holochain_p2p::DhtOpHashExt
source · [−]pub trait DhtOpHashExt: Clone + Sized {
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;
fn to_kitsune(&self) -> Arc<KitsuneOpHash> { ... }
}
Expand description
Extension trait for holo/kitsune conversion
Required Methods
sourcefn into_kitsune(self) -> Arc<KitsuneOpHash>
fn into_kitsune(self) -> Arc<KitsuneOpHash>
convert into Arc
sourcefn into_kitsune_raw(self) -> KitsuneOpHash
fn into_kitsune_raw(self) -> KitsuneOpHash
convert into Kitsune type
sourcefn from_kitsune(k: &Arc<KitsuneOpHash>) -> Self
fn from_kitsune(k: &Arc<KitsuneOpHash>) -> Self
from Kitsune type
sourcefn from_kitsune_raw(k: KitsuneOpHash) -> Self
fn from_kitsune_raw(k: KitsuneOpHash) -> Self
from Kitsune type
Provided Methods
sourcefn to_kitsune(&self) -> Arc<KitsuneOpHash>
fn to_kitsune(&self) -> Arc<KitsuneOpHash>
to Arc