[−][src]Struct test_data::block::BlockBuilder
Methods
impl BlockBuilder
[src]
impl BlockBuilder
impl<F> BlockBuilder<F> where
F: Invoke<Block>,
[src]
impl<F> BlockBuilder<F> where
F: Invoke<Block>,
pub fn with_callback(callback: F) -> Self
[src]
pub fn with_callback(callback: F) -> Self
pub fn with_header(self, header: BlockHeader) -> Self
[src]
pub fn with_header(self, header: BlockHeader) -> Self
pub fn with_transaction(self, transaction: Transaction) -> Self
[src]
pub fn with_transaction(self, transaction: Transaction) -> Self
pub fn with_transactions<I>(self, txs: I) -> Self where
I: IntoIterator<Item = Transaction>,
[src]
pub fn with_transactions<I>(self, txs: I) -> Self where
I: IntoIterator<Item = Transaction>,
pub fn with_raw(self, raw: &'static str) -> Self
[src]
pub fn with_raw(self, raw: &'static str) -> Self
pub fn header(self) -> BlockHeaderBuilder<Self>
[src]
pub fn header(self) -> BlockHeaderBuilder<Self>
pub fn merkled_header(self) -> BlockHeaderBuilder<Self>
[src]
pub fn merkled_header(self) -> BlockHeaderBuilder<Self>
pub fn transaction(self) -> TransactionBuilder<Self>
[src]
pub fn transaction(self) -> TransactionBuilder<Self>
pub fn transaction_with_sigops(self, sigops: usize) -> TransactionBuilder<Self>
[src]
pub fn transaction_with_sigops(self, sigops: usize) -> TransactionBuilder<Self>
pub fn transaction_with_size(self, size: usize) -> TransactionBuilder<Self>
[src]
pub fn transaction_with_size(self, size: usize) -> TransactionBuilder<Self>
pub fn derived_transaction(
self,
tx_idx: usize,
output_idx: u32
) -> TransactionBuilder<Self>
[src]
pub fn derived_transaction(
self,
tx_idx: usize,
output_idx: u32
) -> TransactionBuilder<Self>
pub fn derived_transactions<I>(self, outputs: I) -> TransactionBuilder<Self> where
I: IntoIterator<Item = (usize, u32)>,
[src]
pub fn derived_transactions<I>(self, outputs: I) -> TransactionBuilder<Self> where
I: IntoIterator<Item = (usize, u32)>,
pub fn build(self) -> F::Result
[src]
pub fn build(self) -> F::Result
Trait Implementations
impl<F> Invoke<BlockHeader> for BlockBuilder<F> where
F: Invoke<Block>,
[src]
impl<F> Invoke<BlockHeader> for BlockBuilder<F> where
F: Invoke<Block>,
type Result = Self
fn invoke(self, header: BlockHeader) -> Self
[src]
fn invoke(self, header: BlockHeader) -> Self
impl<F> Invoke<Transaction> for BlockBuilder<F> where
F: Invoke<Block>,
[src]
impl<F> Invoke<Transaction> for BlockBuilder<F> where
F: Invoke<Block>,
type Result = Self
fn invoke(self, tx: Transaction) -> Self
[src]
fn invoke(self, tx: Transaction) -> Self
Auto Trait Implementations
impl<F> Send for BlockBuilder<F> where
F: Send,
impl<F> Send for BlockBuilder<F> where
F: Send,
impl<F> Sync for BlockBuilder<F> where
F: Sync,
impl<F> Sync for BlockBuilder<F> where
F: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more