[−][src]Struct spacejam::Spaceboy
Hallo Spaceboy
Methods
impl Spaceboy
[src]
pub fn new(
pool: &'static str,
chain: &'static str,
cowboy: &'static str
) -> Spaceboy
[src]
pool: &'static str,
chain: &'static str,
cowboy: &'static str
) -> Spaceboy
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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self