[][src]Struct spacejam::Spaceboy

pub struct Spaceboy { /* fields omitted */ }

Hallo Spaceboy

Methods

impl Spaceboy[src]

pub fn new(
    pool: &'static str,
    chain: &'static str,
    cowboy: &'static str
) -> Spaceboy
[src]

Example

fn main() {
    let mut spaceboy = Spaceboy::new(
        "test_pool_spaceboy",
        "test_chain_spaceboy",
        "test_cowboy_spaceboy"
    );
    spaceboy.transfer(10, [0_u8;32], "halo, spaceboy");
    spaceboy.pack("pack");
    spaceboy.revolver.explode();
}

pub fn hello() -> Spaceboy[src]

generate database

pub fn watch(&mut self, account: [u8; 32]) -> usize[src]

checkout utxo

pub fn balance(&mut self) -> usize[src]

checkout balance

pub fn transfer(&mut self, value: i32, to: [u8; 32], msg: &'static str)[src]

transfer tx to others.

pub fn pack(&mut self, msg: &'static str)[src]

Pack barrel to send

Auto Trait Implementations

impl Send for Spaceboy

impl Sync for Spaceboy

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self