[][src]Enum sn_data_types::Event

pub enum Event {
    TransferValidated {
        client: XorName,
        event: TransferValidated,
    },
    TransferDebitAgreementReached {
        client: XorName,
        proof: DebitAgreementProof,
    },
}

Events from the network that are pushed to the client.

Variants

TransferValidated

The transfer was validated by a Replica instance.

Fields of TransferValidated

client: XorName

This is the client id. A client can fhave any number of accounts.

event: TransferValidated

This is the validation of the transfer requested by the client for an account.

TransferDebitAgreementReached

An aggregate event created client side (for upper Client layers) out of a quorum of TransferValidated events. This is a temporary variant, until SignatureAccumulation has been broken out to its own crate, and can be used at client.

Fields of TransferDebitAgreementReached

client: XorName

This is the client id. A client can fhave any number of accounts.

proof: DebitAgreementProof

The accumulated proof.

Implementations

impl Event[src]

pub fn dst_address(&self) -> XorName[src]

Returns the address of the destination for request.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

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

impl Eq for Event[src]

impl Hash for Event[src]

impl PartialEq<Event> for Event[src]

impl Serialize for Event[src]

impl StructuralEq for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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<T> From<T> for T[src]

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

impl<T> Member for T where
    T: Clone + Eq + Hash
[src]

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>,