ManagedBlockchainClient

Struct ManagedBlockchainClient 

Source
pub struct ManagedBlockchainClient { /* private fields */ }
Expand description

A client for the ManagedBlockchain API.

Implementations§

Source§

impl ManagedBlockchainClient

Source

pub fn new(region: Region) -> ManagedBlockchainClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> ManagedBlockchainClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client( client: Client, region: Region, ) -> ManagedBlockchainClient

Trait Implementations§

Source§

impl Clone for ManagedBlockchainClient

Source§

fn clone(&self) -> ManagedBlockchainClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ManagedBlockchain for ManagedBlockchainClient

Source§

fn create_member<'life0, 'async_trait>( &'life0 self, input: CreateMemberInput, ) -> Pin<Box<dyn Future<Output = Result<CreateMemberOutput, RusotoError<CreateMemberError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a member within a Managed Blockchain network.

Source§

fn create_network<'life0, 'async_trait>( &'life0 self, input: CreateNetworkInput, ) -> Pin<Box<dyn Future<Output = Result<CreateNetworkOutput, RusotoError<CreateNetworkError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new blockchain network using Amazon Managed Blockchain.

Source§

fn create_node<'life0, 'async_trait>( &'life0 self, input: CreateNodeInput, ) -> Pin<Box<dyn Future<Output = Result<CreateNodeOutput, RusotoError<CreateNodeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a peer node in a member.

Source§

fn create_proposal<'life0, 'async_trait>( &'life0 self, input: CreateProposalInput, ) -> Pin<Box<dyn Future<Output = Result<CreateProposalOutput, RusotoError<CreateProposalError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal.

Source§

fn delete_member<'life0, 'async_trait>( &'life0 self, input: DeleteMemberInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteMemberOutput, RusotoError<DeleteMemberError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a member. Deleting a member removes the member and all associated resources from the network. DeleteMember can only be called for a specified MemberId if the principal performing the action is associated with the AWS account that owns the member. In all other cases, the DeleteMember action is carried out as the result of an approved proposal to remove a member. If MemberId is the last member in a network specified by the last AWS account, the network is deleted also.

Source§

fn delete_node<'life0, 'async_trait>( &'life0 self, input: DeleteNodeInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteNodeOutput, RusotoError<DeleteNodeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a peer node from a member that your AWS account owns. All data on the node is lost and cannot be recovered.

Source§

fn get_member<'life0, 'async_trait>( &'life0 self, input: GetMemberInput, ) -> Pin<Box<dyn Future<Output = Result<GetMemberOutput, RusotoError<GetMemberError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns detailed information about a member.

Source§

fn get_network<'life0, 'async_trait>( &'life0 self, input: GetNetworkInput, ) -> Pin<Box<dyn Future<Output = Result<GetNetworkOutput, RusotoError<GetNetworkError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns detailed information about a network.

Source§

fn get_node<'life0, 'async_trait>( &'life0 self, input: GetNodeInput, ) -> Pin<Box<dyn Future<Output = Result<GetNodeOutput, RusotoError<GetNodeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns detailed information about a peer node.

Source§

fn get_proposal<'life0, 'async_trait>( &'life0 self, input: GetProposalInput, ) -> Pin<Box<dyn Future<Output = Result<GetProposalOutput, RusotoError<GetProposalError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns detailed information about a proposal.

Source§

fn list_invitations<'life0, 'async_trait>( &'life0 self, input: ListInvitationsInput, ) -> Pin<Box<dyn Future<Output = Result<ListInvitationsOutput, RusotoError<ListInvitationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a listing of all invitations made on the specified network.

Source§

fn list_members<'life0, 'async_trait>( &'life0 self, input: ListMembersInput, ) -> Pin<Box<dyn Future<Output = Result<ListMembersOutput, RusotoError<ListMembersError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a listing of the members in a network and properties of their configurations.

Source§

fn list_networks<'life0, 'async_trait>( &'life0 self, input: ListNetworksInput, ) -> Pin<Box<dyn Future<Output = Result<ListNetworksOutput, RusotoError<ListNetworksError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about the networks in which the current AWS account has members.

Source§

fn list_nodes<'life0, 'async_trait>( &'life0 self, input: ListNodesInput, ) -> Pin<Box<dyn Future<Output = Result<ListNodesOutput, RusotoError<ListNodesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about the nodes within a network.

Source§

fn list_proposal_votes<'life0, 'async_trait>( &'life0 self, input: ListProposalVotesInput, ) -> Pin<Box<dyn Future<Output = Result<ListProposalVotesOutput, RusotoError<ListProposalVotesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.

Source§

fn list_proposals<'life0, 'async_trait>( &'life0 self, input: ListProposalsInput, ) -> Pin<Box<dyn Future<Output = Result<ListProposalsOutput, RusotoError<ListProposalsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a listing of proposals for the network.

Source§

fn reject_invitation<'life0, 'async_trait>( &'life0 self, input: RejectInvitationInput, ) -> Pin<Box<dyn Future<Output = Result<RejectInvitationOutput, RusotoError<RejectInvitationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.

Source§

fn update_member<'life0, 'async_trait>( &'life0 self, input: UpdateMemberInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateMemberOutput, RusotoError<UpdateMemberError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a member configuration with new parameters.

Source§

fn update_node<'life0, 'async_trait>( &'life0 self, input: UpdateNodeInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateNodeOutput, RusotoError<UpdateNodeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a node configuration with new parameters.

Source§

fn vote_on_proposal<'life0, 'async_trait>( &'life0 self, input: VoteOnProposalInput, ) -> Pin<Box<dyn Future<Output = Result<VoteOnProposalOutput, RusotoError<VoteOnProposalError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by VoterMemberId, must be in the same AWS account as the principal that calls the action.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more