pub struct PackageServiceClient<T> { /* private fields */ }Expand description
Allows clients to query the Daml-LF packages that are supported by the server.
Implementations§
Source§impl<T> PackageServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
impl<T> PackageServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
pub fn new(inner: T) -> PackageServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> PackageServiceClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PackageServiceClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<Body>>::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<Box<dyn Error + Sync + Send>> + Send + Sync,
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> PackageServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> PackageServiceClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(
self,
encoding: CompressionEncoding,
) -> PackageServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> PackageServiceClient<T>
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> PackageServiceClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> PackageServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> PackageServiceClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> PackageServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn list_packages(
&mut self,
request: impl IntoRequest<ListPackagesRequest>,
) -> Result<Response<ListPackagesResponse>, Status>
pub async fn list_packages( &mut self, request: impl IntoRequest<ListPackagesRequest>, ) -> Result<Response<ListPackagesResponse>, Status>
Returns the identifiers of all supported packages.
Sourcepub async fn get_package(
&mut self,
request: impl IntoRequest<GetPackageRequest>,
) -> Result<Response<GetPackageResponse>, Status>
pub async fn get_package( &mut self, request: impl IntoRequest<GetPackageRequest>, ) -> Result<Response<GetPackageResponse>, Status>
Returns the contents of a single package.
Sourcepub async fn get_package_status(
&mut self,
request: impl IntoRequest<GetPackageStatusRequest>,
) -> Result<Response<GetPackageStatusResponse>, Status>
pub async fn get_package_status( &mut self, request: impl IntoRequest<GetPackageStatusRequest>, ) -> Result<Response<GetPackageStatusResponse>, Status>
Returns the status of a single package.
Sourcepub async fn list_vetted_packages(
&mut self,
request: impl IntoRequest<ListVettedPackagesRequest>,
) -> Result<Response<ListVettedPackagesResponse>, Status>
pub async fn list_vetted_packages( &mut self, request: impl IntoRequest<ListVettedPackagesRequest>, ) -> Result<Response<ListVettedPackagesResponse>, Status>
Lists which participant node vetted what packages on which synchronizer. Can be called by any authenticated user.
Trait Implementations§
Source§impl<T> Clone for PackageServiceClient<T>where
T: Clone,
impl<T> Clone for PackageServiceClient<T>where
T: Clone,
Source§fn clone(&self) -> PackageServiceClient<T>
fn clone(&self) -> PackageServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for PackageServiceClient<T>
impl<T> RefUnwindSafe for PackageServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for PackageServiceClient<T>
impl<T> Sync for PackageServiceClient<T>
impl<T> Unpin for PackageServiceClient<T>
impl<T> UnsafeUnpin for PackageServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for PackageServiceClient<T>where
Grpc<T>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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::RequestSource§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