[][src]Struct sim1h::workflow::state::Sim1hState

pub struct Sim1hState {
    pub initialized: bool,
    pub space_hash: SpaceHash,
    pub agent_id: AgentPubKey,
    pub client_request_outbox: Vec<Lib3hToClient>,
    pub client_response_outbox: Vec<ClientToLib3hResponse>,
    pub held_aspects: AspectAddressMap,
    // some fields omitted
}

Fields

initialized: boolspace_hash: SpaceHashagent_id: AgentPubKeyclient_request_outbox: Vec<Lib3hToClient>client_response_outbox: Vec<ClientToLib3hResponse>held_aspects: AspectAddressMap

Methods

impl Sim1hState[src]

pub fn hold_entry(
    log_context: &LogContext,
    _client: &Client,
    _data: &ProvidedEntryData
) -> BbDhtResult<()>
[src]

impl Sim1hState[src]

pub fn join_space(
    log_context: &LogContext,
    client: &Client,
    join_space_data: &SpaceData
) -> BbDhtResult<(ClientToLib3hResponse, Sim1hState)>
[src]

create space if not exists touch agent

impl Sim1hState[src]

pub fn query_entry(
    &mut self,
    log_context: &LogContext,
    _client: &Client,
    query_entry_data: &QueryEntryData
) -> BbDhtResult<()>
[src]

90% (need query logic to be finalised) fetch all entry aspects from entry address do some kind of filter based on the non-opaque query struct familiar to rehydrate the opaque query struct

impl Sim1hState[src]

pub fn new(space_hash: SpaceHash, agent_id: AgentPubKey) -> Self[src]

pub fn process_pending_requests_to_client(
    &mut self,
    client: &Client
) -> Result<Vec<Lib3hToClient>, String>
[src]

pub fn process_pending_responses_to_client(
    &mut self
) -> Vec<ClientToLib3hResponse>
[src]

impl Sim1hState[src]

pub fn handle_get_authoring_entry_list_result(
    &mut self,
    log_context: &LogContext,
    entry_list_data: &EntryListData
)
[src]

impl Sim1hState[src]

pub fn handle_get_gossiping_entry_list_result(
    &mut self,
    log_context: &LogContext,
    entry_list_data: &EntryListData
)
[src]

impl Sim1hState[src]

pub fn handle_query_entry_result(
    &mut self,
    log_context: &LogContext,
    data: &QueryEntryResultData
)
[src]

Response to a HandleQueryEntry request

Trait Implementations

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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