pub struct PackageManagementServiceClient<T> { /* private fields */ }Expand description
Status: experimental interface, will change before it is deemed production ready
Query the Daml-LF packages supported by the ledger participant and upload DAR files. We use ‘backing participant’ to refer to this specific participant in the methods of this API.
Implementations§
Source§impl<T> PackageManagementServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
impl<T> PackageManagementServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub fn new(inner: T) -> PackageManagementServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> PackageManagementServiceClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PackageManagementServiceClient<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 + Send + Sync>> + Send + Sync,
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> PackageManagementServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> PackageManagementServiceClient<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,
) -> PackageManagementServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> PackageManagementServiceClient<T>
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(
self,
limit: usize,
) -> PackageManagementServiceClient<T>
pub fn max_decoding_message_size( self, limit: usize, ) -> PackageManagementServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(
self,
limit: usize,
) -> PackageManagementServiceClient<T>
pub fn max_encoding_message_size( self, limit: usize, ) -> PackageManagementServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn list_known_packages(
&mut self,
request: impl IntoRequest<ListKnownPackagesRequest>,
) -> Result<Response<ListKnownPackagesResponse>, Status>
pub async fn list_known_packages( &mut self, request: impl IntoRequest<ListKnownPackagesRequest>, ) -> Result<Response<ListKnownPackagesResponse>, Status>
Returns the details of all Daml-LF packages known to the backing participant.
Sourcepub async fn upload_dar_file(
&mut self,
request: impl IntoRequest<UploadDarFileRequest>,
) -> Result<Response<UploadDarFileResponse>, Status>
pub async fn upload_dar_file( &mut self, request: impl IntoRequest<UploadDarFileRequest>, ) -> Result<Response<UploadDarFileResponse>, Status>
Upload a DAR file to the participant.
If vetting is enabled in the request, the DAR is checked for upgrade compatibility with the set of the already vetted packages on the target vetting synchronizer See UploadDarFileRequest for details regarding vetting and the target vetting synchronizer.
Sourcepub async fn validate_dar_file(
&mut self,
request: impl IntoRequest<ValidateDarFileRequest>,
) -> Result<Response<ValidateDarFileResponse>, Status>
pub async fn validate_dar_file( &mut self, request: impl IntoRequest<ValidateDarFileRequest>, ) -> Result<Response<ValidateDarFileResponse>, Status>
Validates the DAR and checks the upgrade compatibility of the DAR’s packages with the set of the already vetted packages on the target vetting synchronizer. See ValidateDarFileRequest for details regarding the target vetting synchronizer.
The operation has no effect on the state of the participant or the Canton ledger: the DAR payload and its packages are not persisted neither are the packages vetted.
Sourcepub async fn update_vetted_packages(
&mut self,
request: impl IntoRequest<UpdateVettedPackagesRequest>,
) -> Result<Response<UpdateVettedPackagesResponse>, Status>
pub async fn update_vetted_packages( &mut self, request: impl IntoRequest<UpdateVettedPackagesRequest>, ) -> Result<Response<UpdateVettedPackagesResponse>, Status>
Update the vetted packages of this participant
Trait Implementations§
Source§impl<T> Clone for PackageManagementServiceClient<T>where
T: Clone,
impl<T> Clone for PackageManagementServiceClient<T>where
T: Clone,
Source§fn clone(&self) -> PackageManagementServiceClient<T>
fn clone(&self) -> PackageManagementServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for PackageManagementServiceClient<T>
impl<T> RefUnwindSafe for PackageManagementServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for PackageManagementServiceClient<T>
impl<T> Sync for PackageManagementServiceClient<T>
impl<T> Unpin for PackageManagementServiceClient<T>
impl<T> UnsafeUnpin for PackageManagementServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for PackageManagementServiceClient<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
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>
T in a tonic::Request