pub struct TapNode { /* private fields */ }
Expand description
Represents a node on the TAP network that manages multiple agents
Implementations§
Source§impl TapNode
impl TapNode
Sourcepub fn add_agent(&mut self, agent: WasmTapAgent) -> Result<(), JsValue>
pub fn add_agent(&mut self, agent: WasmTapAgent) -> Result<(), JsValue>
Adds an agent to this node
Sourcepub fn get_agent(&self, did: &str) -> Option<WasmTapAgent>
pub fn get_agent(&self, did: &str) -> Option<WasmTapAgent>
Gets an agent by DID
Sourcepub fn list_agents(&self) -> JsValue
pub fn list_agents(&self) -> JsValue
Lists all agents in this node
Sourcepub fn remove_agent(&mut self, did: &str) -> bool
pub fn remove_agent(&mut self, did: &str) -> bool
Removes an agent from this node
Trait Implementations§
Source§impl FromWasmAbi for TapNode
impl FromWasmAbi for TapNode
Source§impl IntoWasmAbi for TapNode
impl IntoWasmAbi for TapNode
Source§impl LongRefFromWasmAbi for TapNode
impl LongRefFromWasmAbi for TapNode
Source§impl OptionFromWasmAbi for TapNode
impl OptionFromWasmAbi for TapNode
Source§impl OptionIntoWasmAbi for TapNode
impl OptionIntoWasmAbi for TapNode
Source§impl RefFromWasmAbi for TapNode
impl RefFromWasmAbi for TapNode
Source§impl RefMutFromWasmAbi for TapNode
impl RefMutFromWasmAbi for TapNode
Source§impl TryFromJsValue for TapNode
impl TryFromJsValue for TapNode
Source§impl VectorFromWasmAbi for TapNode
impl VectorFromWasmAbi for TapNode
Source§impl VectorIntoWasmAbi for TapNode
impl VectorIntoWasmAbi for TapNode
impl SupportsConstructor for TapNode
impl SupportsInstanceProperty for TapNode
impl SupportsStaticProperty for TapNode
Auto Trait Implementations§
impl Freeze for TapNode
impl RefUnwindSafe for TapNode
impl !Send for TapNode
impl !Sync for TapNode
impl Unpin for TapNode
impl UnwindSafe for TapNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.