pub struct TapIntegration { /* private fields */ }Expand description
TAP ecosystem integration - thin wrapper around TapNode
Implementations§
Source§impl TapIntegration
impl TapIntegration
Sourcepub async fn new(
agent_did: Option<&str>,
tap_root: Option<&str>,
agent: Option<Arc<TapAgent>>,
) -> Result<Self>
pub async fn new( agent_did: Option<&str>, tap_root: Option<&str>, agent: Option<Arc<TapAgent>>, ) -> Result<Self>
Create new TAP integration using TapNode with agent registration
Sourcepub async fn new_for_testing(
tap_root: Option<&str>,
agent_did: &str,
) -> Result<Self>
pub async fn new_for_testing( tap_root: Option<&str>, agent_did: &str, ) -> Result<Self>
Create new TAP integration for testing with custom paths
pub fn node(&self) -> &Arc<TapNode>
pub fn storage_path(&self) -> Option<&PathBuf>
pub async fn storage_for_agent(&self, agent_did: &str) -> Result<Arc<Storage>>
pub async fn list_agents(&self) -> Result<Vec<AgentInfo>>
Auto Trait Implementations§
impl Freeze for TapIntegration
impl !RefUnwindSafe for TapIntegration
impl Send for TapIntegration
impl Sync for TapIntegration
impl Unpin for TapIntegration
impl UnsafeUnpin for TapIntegration
impl !UnwindSafe for TapIntegration
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more