[−][src]Struct sim1h::workflow::state::Sim1hState
Fields
initialized: bool
space_hash: SpaceHash
agent_id: AgentPubKey
client_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]
log_context: &LogContext,
_client: &Client,
_data: &ProvidedEntryData
) -> BbDhtResult<()>
impl Sim1hState
[src]
pub fn join_space(
log_context: &LogContext,
client: &Client,
join_space_data: &SpaceData
) -> BbDhtResult<(ClientToLib3hResponse, Sim1hState)>
[src]
log_context: &LogContext,
client: &Client,
join_space_data: &SpaceData
) -> BbDhtResult<(ClientToLib3hResponse, Sim1hState)>
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]
&mut self,
log_context: &LogContext,
_client: &Client,
query_entry_data: &QueryEntryData
) -> BbDhtResult<()>
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]
&mut self,
client: &Client
) -> Result<Vec<Lib3hToClient>, String>
pub fn process_pending_responses_to_client(
&mut self
) -> Vec<ClientToLib3hResponse>
[src]
&mut self
) -> Vec<ClientToLib3hResponse>
impl Sim1hState
[src]
pub fn handle_get_authoring_entry_list_result(
&mut self,
log_context: &LogContext,
entry_list_data: &EntryListData
)
[src]
&mut self,
log_context: &LogContext,
entry_list_data: &EntryListData
)
impl Sim1hState
[src]
pub fn handle_get_gossiping_entry_list_result(
&mut self,
log_context: &LogContext,
entry_list_data: &EntryListData
)
[src]
&mut self,
log_context: &LogContext,
entry_list_data: &EntryListData
)
impl Sim1hState
[src]
pub fn handle_query_entry_result(
&mut self,
log_context: &LogContext,
data: &QueryEntryResultData
)
[src]
&mut self,
log_context: &LogContext,
data: &QueryEntryResultData
)
Response to a HandleQueryEntry
request
Trait Implementations
impl Default for Sim1hState
[src]
fn default() -> Sim1hState
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sim1hState
impl Send for Sim1hState
impl Sync for Sim1hState
impl Unpin for Sim1hState
impl UnwindSafe for Sim1hState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,