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