[][src]Struct keynesis::passport::Passport

pub struct Passport { /* fields omitted */ }

Implementations

impl Passport[src]

pub fn prepare_next_event(&self, action: EventAction) -> Event[src]

pub fn new(id: &PrivateIdentity) -> Self[src]

pub fn new_with(event: Event) -> Result<Self, PassportError>[src]

pub fn load_event(&mut self, event: Event) -> Result<(), PassportError>[src]

pub fn check_identity(&self, id: &PublicIdentity) -> bool[src]

pub fn push(
    &mut self,
    id: &PrivateIdentity,
    action: EventAction
) -> Result<EventId, PassportError>
[src]

pub fn iter(&self) -> impl Iterator<Item = &Event>[src]

Trait Implementations

impl Clone for Passport[src]

impl Debug for Passport[src]

impl Eq for Passport[src]

impl PartialEq<Passport> for Passport[src]

impl StructuralEq for Passport[src]

impl StructuralPartialEq for Passport[src]

Auto Trait Implementations

impl !RefUnwindSafe for Passport

impl !Send for Passport

impl !Sync for Passport

impl Unpin for Passport

impl UnwindSafe for Passport

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

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

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