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