pub struct TopologyClient { /* private fields */ }Expand description
A client for Canton’s TopologyManagerReadService (admin API).
On LocalNet the admin API is unauthenticated; in hardened deployments set a
bearer token via Config::with_oidc.
Implementations§
Source§impl TopologyClient
impl TopologyClient
Sourcepub fn connect_lazy(config: Config) -> Result<Self>
pub fn connect_lazy(config: Config) -> Result<Self>
Build a lazily-connected client for the admin API endpoint (e.g.
http://localhost:3902).
§Errors
Returns Error::InvalidRequest if
the endpoint is not a valid URI.
Sourcepub async fn list_party_to_participant(
&self,
store: Store,
filter_party: &str,
filter_participant: &str,
) -> Result<Vec<Entry<PartyToParticipant>>>
pub async fn list_party_to_participant( &self, store: Store, filter_party: &str, filter_participant: &str, ) -> Result<Vec<Entry<PartyToParticipant>>>
Sourcepub async fn list_namespace_delegations(
&self,
store: Store,
filter_namespace: &str,
filter_target_key_fingerprint: &str,
) -> Result<Vec<Entry<NamespaceDelegation>>>
pub async fn list_namespace_delegations( &self, store: Store, filter_namespace: &str, filter_target_key_fingerprint: &str, ) -> Result<Vec<Entry<NamespaceDelegation>>>
Sourcepub async fn list_vetted_packages(
&self,
store: Store,
filter_participant: &str,
) -> Result<Vec<Entry<VettedPackages>>>
pub async fn list_vetted_packages( &self, store: Store, filter_participant: &str, ) -> Result<Vec<Entry<VettedPackages>>>
Read vetted packages (ListVettedPackages). Empty participant filter
matches all.
Vetted packages are stored per-synchronizer: query with
Store::Synchronizer (the synchronizer’s physical id) rather than
Store::Authorized, or the result is empty.
§Errors
Returns an Error if the RPC fails.
Trait Implementations§
Source§impl Clone for TopologyClient
impl Clone for TopologyClient
Auto Trait Implementations§
impl !RefUnwindSafe for TopologyClient
impl !UnwindSafe for TopologyClient
impl Freeze for TopologyClient
impl Send for TopologyClient
impl Sync for TopologyClient
impl Unpin for TopologyClient
impl UnsafeUnpin for TopologyClient
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request