bdkffi::types

Struct ChangeSet

Source
pub struct ChangeSet { /* private fields */ }

Implementations§

Source§

impl ChangeSet

Source

pub fn new() -> Self

Create an empty ChangeSet.

Source

pub fn from_aggregate( descriptor: Option<Arc<Descriptor>>, change_descriptor: Option<Arc<Descriptor>>, network: Option<Network>, local_chain: LocalChainChangeSet, tx_graph: TxGraphChangeSet, indexer: IndexerChangeSet, ) -> Self

Source

pub fn from_descriptor_and_network( descriptor: Option<Arc<Descriptor>>, change_descriptor: Option<Arc<Descriptor>>, network: Option<Network>, ) -> Self

Source

pub fn from_local_chain_changes( local_chain_changes: LocalChainChangeSet, ) -> Self

Start a wallet ChangeSet from local chain changes.

Source

pub fn from_indexer_changeset(indexer_changes: IndexerChangeSet) -> Self

Start a wallet ChangeSet from indexer changes.

Source

pub fn from_tx_graph_changeset(tx_graph_changeset: TxGraphChangeSet) -> Self

Start a wallet ChangeSet from transaction graph changes.

Source

pub fn from_merge(left: Arc<ChangeSet>, right: Arc<ChangeSet>) -> Self

Build a ChangeSet by merging together two ChangeSet.

Source

pub fn descriptor(&self) -> Option<Arc<Descriptor>>

Get the receiving Descriptor.

Source

pub fn change_descriptor(&self) -> Option<Arc<Descriptor>>

Get the change Descriptor

Source

pub fn network(&self) -> Option<Network>

Get the Network

Source

pub fn localchain_changeset(&self) -> LocalChainChangeSet

Get the changes to the local chain.

Source

pub fn tx_graph_changeset(&self) -> TxGraphChangeSet

Get the changes to the transaction graph.

Source

pub fn indexer_changeset(&self) -> IndexerChangeSet

Get the changes to the indexer.

Trait Implementations§

Source§

impl Clone for ChangeSet

Source§

fn clone(&self) -> ChangeSet

Returns a copy 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 Debug for ChangeSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ChangeSet> for ChangeSet

Source§

fn from(value: ChangeSet) -> Self

Converts to this type from the input type.
Source§

impl From<ChangeSet> for ChangeSet

Source§

fn from(value: ChangeSet) -> Self

Converts to this type from the input type.
Source§

impl<UT> LiftRef<UT> for ChangeSet

Source§

impl<UT> LowerError<UT> for ChangeSet

Source§

fn lower_error(obj: Self) -> RustBuffer

Lower this value for scaffolding function return Read more
Source§

impl<UT> LowerReturn<UT> for ChangeSet

Source§

type ReturnType = <Arc<ChangeSet> as LowerReturn<UniFfiTag>>::ReturnType

The type that should be returned by scaffolding functions for this type. Read more
Source§

fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>

Lower the return value from an scaffolding call Read more
§

fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>

Lower the return value for failed argument lifts Read more
Source§

impl<UT> TypeId<UT> for ChangeSet

Source§

const TYPE_ID_META: MetadataBuffer

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, dst: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. 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> 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V