Trait holochain::prelude::DhtOpHashExt
source · 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§
sourcefn into_kitsune(self) -> Arc<KitsuneOpHash>
fn into_kitsune(self) -> Arc<KitsuneOpHash>
convert into Arc<Kitsune>
type
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<Kitsune>
type