Struct forest_actor::ActorState[][src]

pub struct ActorState {
    pub code: Cid,
    pub state: Cid,
    pub sequence: u64,
    pub balance: BigInt,
}

State of all actor implementations

Fields

code: Cidstate: Cidsequence: u64balance: BigInt

Implementations

impl ActorState[src]

pub fn new(code: Cid, state: Cid, balance: BigInt, sequence: u64) -> ActorState[src]

Constructor for actor state

pub fn deduct_funds(&mut self, amt: &BigInt) -> Result<(), String>[src]

Safely deducts funds from an Actor

pub fn deposit_funds(&mut self, amt: &BigInt)[src]

Deposits funds to an Actor

Trait Implementations

impl Clone for ActorState[src]

impl Debug for ActorState[src]

impl<'de> Deserialize<'de> for ActorState[src]

impl Eq for ActorState[src]

impl PartialEq<ActorState> for ActorState[src]

impl Serialize for ActorState[src]

impl StructuralEq for ActorState[src]

impl StructuralPartialEq for ActorState[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,