Struct Session

Source
pub struct Session {
    pub inner: Arc<Inner>,
}
Expand description

Synchronous AvesTerra client. Exposes the same API as SessionAsync, but all methods are blocking.

This Session is backed by a Tokio runtime and internally uses a SessionAsync.

This makes it possible to switch to using the asynchronous client at any time. See the example [examples/hybrid_sync_async.rs] for an example of how to do that.

WARNING: CALLING .call() WILL PANIC IF USED FROM AN ASYNCHRONOUS CONTEXT. IF YOU WANT TO USE YOUR OWN ASYNCHRONOUS CONTEXT, USE SessionAsync. Session WILL CREATE ITS OWN CONTEXT, AND THERE SHOULD ONLY BE ONE. (it’s technically possible to have multiple, but you have to be very careful, and it’s probably not what you want anyways).

See SessionAsync for more details.

You need to create the Session with Session::initialize

Fields§

§inner: Arc<Inner>

Implementations§

Source§

impl Session

Source

pub fn initialize(config: SessionConfig) -> Result<Self>

Source

pub fn finalize(self)

Cleanly closes all connections. This method will wait for all currently used connections to be returned to the pool. This might take a while depending on how long is the queue of calls waiting for a connection. In an ideal world this would have been implemented better and the queue of pending calls would have been cancelled, but it’s not the case, sorry.

Source

pub fn run_async<'a, Fn, Fut>(&'a self, func: Fn) -> <Fut as Future>::Output
where Fn: FnOnce(&'a SessionAsync) -> Fut + Send, Fut: Future + Send + 'a, <Fut as Future>::Output: Send,

Source§

impl Session

Source

pub fn invoke_entity( &self, entity: Entity, method: Method, authorization: Token, ) -> InvokeEntity<Self>

Source§

impl Session

Source

pub fn create_entity( &self, name: String255, authorization: Token, ) -> CreateEntity<Self>

Source§

impl Session

Source

pub fn delete_entity( &self, entity: Entity, authorization: Token, ) -> DeleteEntity<Self>

Source§

impl Session

Source

pub fn inquire_entity( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> InquireEntity<Self>

Source§

impl Session

Source

pub fn reference_entity( &self, entity: Entity, authorization: Token, ) -> ReferenceEntity<Self>

Source§

impl Session

Source

pub fn dereference_entity( &self, entity: Entity, authorization: Token, ) -> DereferenceEntity<Self>

Source§

impl Session

Source

pub fn connect_method( &self, entity: Entity, outlet: Entity, authorization: Token, ) -> ConnectMethod<Self>

Source§

impl Session

Source

pub fn disconnect_method( &self, entity: Entity, outlet: Entity, method: Method, authorization: Token, ) -> DisconnectMethod<Self>

Source§

impl Session

Source

pub fn entity_connection( &self, entity: Entity, index: i64, authorization: Token, ) -> EntityConnection<Self>

Source§

impl Session

Source

pub fn attach_attribute( &self, entity: Entity, outlet: Entity, authorization: Token, ) -> AttachAttribute<Self>

Source§

impl Session

Source

pub fn detach_attribute( &self, entity: Entity, outlet: Entity, attribute: Attribute, authorization: Token, ) -> DetachAttribute<Self>

Source§

impl Session

Source

pub fn entity_attachment( &self, entity: Entity, index: i64, authorization: Token, ) -> EntityAttachment<Self>

Source§

impl Session

Source

pub fn activate_outlet( &self, outlet: Entity, authorization: Token, ) -> ActivateOutlet<Self>

Source§

impl Session

Source

pub fn deactivate_outlet( &self, outlet: Entity, authorization: Token, ) -> DeactivateOutlet<Self>

Source§

impl Session

Source

pub fn reset_outlet( &self, outlet: Entity, authorization: Token, ) -> ResetOutlet<Self>

Source§

impl Session

Source

pub fn publish_event( &self, entity: Entity, event: Event, authorization: Token, ) -> PublishEvent<Self>

Source§

impl Session

Source

pub fn subscribe_event( &self, entity: Entity, outlet: Entity, authorization: Token, ) -> SubscribeEvent<Self>

Source§

impl Session

Source

pub fn unsubscribe_event( &self, entity: Entity, outlet: Entity, event: Event, authorization: Token, ) -> UnsubscribeEvent<Self>

Source§

impl Session

Source

pub fn wait_event( &self, outlet: Entity, authorization: Token, ) -> WaitEvent<Self>

Source§

impl Session

Source

pub fn subscribe_entity( &self, entity: Entity, outlet: Entity, event: Event, authorization: Token, ) -> SubscribeEntity<Self>

Source§

impl Session

Source

pub fn lock_outlet( &self, outlet: Entity, authorization: Token, ) -> LockOutlet<Self>

Source§

impl Session

Source

pub fn unlock_outlet( &self, outlet: Entity, authorization: Token, ) -> UnlockOutlet<Self>

Source§

impl Session

Source

pub fn authorize_entity( &self, entity: Entity, authority: Token, authorization: Token, ) -> AuthorizeEntity<Self>

Source§

impl Session

Source

pub fn deauthorize_entity( &self, entity: Entity, authority: Token, authorization: Token, ) -> DeauthorizeEntity<Self>

Source§

impl Session

Source

pub fn entity_authorized( &self, entity: Entity, authority: Token, authorization: Token, ) -> EntityAuthorized<Self>

Source§

impl Session

Source

pub fn entity_authority( &self, entity: Entity, authorization: Token, ) -> EntityAuthority<Self>

Source§

impl Session

Source

pub fn entity_name( &self, entity: Entity, authorization: Token, ) -> EntityName<Self>

Source§

impl Session

Source

pub fn entity_class( &self, entity: Entity, authorization: Token, ) -> EntityClass<Self>

Source§

impl Session

Source

pub fn entity_category( &self, entity: Entity, authorization: Token, ) -> EntityCategory<Self>

Source§

impl Session

Source

pub fn local_server(&self, authorization: Token) -> LocalServer<Self>

Source§

impl Session

Source

pub fn local_version(&self) -> LocalVersion<Self>

Source§

impl Session

Source

pub fn entity_redirection( &self, entity: Entity, authorization: Token, ) -> EntityRedirection<Self>

Source§

impl Session

Source

pub fn entity_redirect( &self, auxiliary: Entity, ancillary: Entity, authorization: Token, ) -> EntityRedirect<Self>

Source§

impl Session

Source

pub fn change_entity( &self, entity: Entity, authorization: Token, ) -> ChangeEntity<Self>

Source§

impl Session

Source

pub fn entity_timestamp( &self, entity: Entity, authorization: Token, ) -> EntityTimestamp<Self>

Source§

impl Session

Source

pub fn entity_available( &self, entity: Entity, authorization: Token, ) -> EntityAvailable<Self>

Source§

impl Session

Source

pub fn entity_extinct( &self, entity: Entity, authorization: Token, ) -> EntityExtinct<Self>

Source§

impl Session

Source

pub fn entity_activated( &self, entity: Entity, authorization: Token, ) -> EntityActivated<Self>

Source§

impl Session

Source

pub fn entity_locked( &self, entity: Entity, authorization: Token, ) -> EntityLocked<Self>

Source§

impl Session

Source

pub fn pending(&self, entity: Entity, authorization: Token) -> Pending<Self>

Source§

impl Session

Source

pub fn entity_rendezvous( &self, entity: Entity, authorization: Token, ) -> EntityRendezvous<Self>

Source§

impl Session

Source

pub fn entity_references( &self, entity: Entity, authorization: Token, ) -> EntityReferences<Self>

Source§

impl Session

Source

pub fn connection_count( &self, entity: Entity, authorization: Token, ) -> ConnectionCount<Self>

Source§

impl Session

Source

pub fn attachment_count( &self, entity: Entity, authorization: Token, ) -> AttachmentCount<Self>

Source§

impl Session

Source

pub fn subscription_count( &self, entity: Entity, authorization: Token, ) -> SubscriptionCount<Self>

Source§

impl Session

Source

pub fn entity_authorizations( &self, entity: Entity, authorization: Token, ) -> EntityAuthorizations<Self>

Source§

impl Session

Source

pub fn fetch_entity( &self, entity: Entity, authorization: Token, ) -> FetchEntity<Self>

Source§

impl Session

Source

pub fn insert_element( &self, entity: Entity, value: &Value, index: i64, authorization: Token, ) -> InsertElement<Self>

Source§

impl Session

Source

pub fn remove_element( &self, entity: Entity, index: i64, authorization: Token, ) -> RemoveElement<Self>

Source§

impl Session

Source

pub fn replace_element( &self, entity: Entity, value: &Value, index: i64, authorization: Token, ) -> ReplaceElement<Self>

Source§

impl Session

Source

pub fn erase_element( &self, entity: Entity, authorization: Token, ) -> EraseElement<Self>

Source§

impl Session

Source

pub fn find_element( &self, entity: Entity, value: &Value, index: i64, authorization: Token, ) -> FindElement<Self>

Source§

impl Session

Source

pub fn entity_element( &self, entity: Entity, authorization: Token, ) -> EntityElement<Self>

Source§

impl Session

Source

pub fn element_count( &self, entity: Entity, authorization: Token, ) -> ElementCount<Self>

Source§

impl Session

Source

pub fn adapt_outlet( &self, outlet: Entity, authorization: Token, callback: <AdaptOutlet<Session> as AdaptOutletTrait>::CallbackType, ) -> AdaptOutlet<Session>

Source§

impl Session

Source

pub fn insert_annotation( &self, entity: Entity, key: String255, index: i64, attribute: Attribute, value: Value, authorization: Token, ) -> InsertAnnotation<Self>

Source§

impl Session

Source

pub fn remove_annotation( &self, entity: Entity, key: String255, authorization: Token, ) -> RemoveAnnotation<Self>

Source§

impl Session

Source

pub fn replace_annotation( &self, entity: Entity, key: String255, attribute: Attribute, value: Value, authorization: Token, ) -> ReplaceAnnotation<Self>

Source§

impl Session

Source

pub fn find_annotation( &self, entity: Entity, key: String255, value: Value, authorization: Token, ) -> FindAnnotation<Self>

Source§

impl Session

Source

pub fn include_annotation( &self, entity: Entity, key: String255, attribute: Attribute, value: Value, authorization: Token, ) -> IncludeAnnotation<Self>

Source§

impl Session

Source

pub fn exclude_annotation( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> ExcludeAnnotation<Self>

Source§

impl Session

Source

pub fn set_annotation( &self, entity: Entity, key: String255, attribute: Attribute, value: Value, authorization: Token, ) -> SetAnnotation<Self>

Source§

impl Session

Source

pub fn get_annotation( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> GetAnnotation<Self>

Source§

impl Session

Source

pub fn clear_annotation( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> ClearAnnotation<Self>

Source§

impl Session

Source

pub fn annotation_count( &self, entity: Entity, key: String255, authorization: Token, ) -> AnnotationCount<Self>

Source§

impl Session

Source

pub fn annotation_member( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> AnnotationMember<Self>

Source§

impl Session

Source

pub fn annotation_name( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> AnnotationName<Self>

Source§

impl Session

Source

pub fn annotation_key( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> AnnotationKey<Self>

Source§

impl Session

Source

pub fn annotation_value( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> AnnotationValue<Self>

Source§

impl Session

Source

pub fn annotation_index( &self, entity: Entity, key: String255, attribute: Attribute, authorization: Token, ) -> AnnotationIndex<Self>

Source§

impl Session

Source

pub fn annotation_attribute( &self, entity: Entity, key: String255, instance: i32, authorization: Token, ) -> AnnotationAttribute<Self>

Source§

impl Session

Source

pub fn purge_annotations( &self, entity: Entity, key: String255, authorization: Token, ) -> PurgeAnnotations<Self>

Source§

impl Session

Source

pub fn sort_annotations( &self, entity: Entity, key: String255, authorization: Token, ) -> SortAnnotations<Self>

Source§

impl Session

Source

pub fn retrieve_annotations( &self, entity: Entity, key: String255, authorization: Token, ) -> RetrieveAnnotations<Self>

Source§

impl Session

Source

pub fn insert_facet( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> InsertFacet<Self>

Source§

impl Session

Source

pub fn remove_facet( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> RemoveFacet<Self>

Source§

impl Session

Source

pub fn replace_facet( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> ReplaceFacet<Self>

Source§

impl Session

Source

pub fn find_facet( &self, entity: Entity, attribute: Attribute, value: Value, authorization: Token, ) -> FindFacet<Self>

Source§

impl Session

Source

pub fn include_facet( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> IncludeFacet<Self>

Source§

impl Session

Source

pub fn exclude_facet( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> ExcludeFacet<Self>

Source§

impl Session

Source

pub fn set_facet( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> SetFacet<Self>

Source§

impl Session

Source

pub fn get_facet( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> GetFacet<Self>

Source§

impl Session

Source

pub fn clear_facet( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> ClearFacet<Self>

Source§

impl Session

Source

pub fn facet_count( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FacetCount<Self>

Source§

impl Session

Source

pub fn facet_member( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FacetMember<Self>

Source§

impl Session

Source

pub fn facet_name( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> FacetName<Self>

Source§

impl Session

Source

pub fn facet_key( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FacetKey<Self>

Source§

impl Session

Source

pub fn facet_value( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FacetValue<Self>

Source§

impl Session

Source

pub fn facet_index( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FacetIndex<Self>

Source§

impl Session

Source

pub fn facet_attribute( &self, entity: Entity, authorization: Token, ) -> FacetAttribute<Self>

Source§

impl Session

Source

pub fn sort_facets( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> SortFacets<Self>

Source§

impl Session

Source

pub fn purge_facets( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> PurgeFacets<Self>

Source§

impl Session

Source

pub fn retrieve_facets( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> RetrieveFacets<Self>

Source§

impl Session

Source

pub fn insert_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, value: Value, authorization: Token, ) -> InsertFactor<Self>

Source§

impl Session

Source

pub fn remove_factor( &self, entity: Entity, attribute: Attribute, name: String255, index: i64, authorization: Token, ) -> RemoveFactor<Self>

Source§

impl Session

Source

pub fn replace_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, value: Value, authorization: Token, ) -> ReplaceFactor<Self>

Source§

impl Session

Source

pub fn find_factor( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> FindFactor<Self>

Source§

impl Session

Source

pub fn include_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, value: Value, authorization: Token, ) -> IncludeFactor<Self>

Source§

impl Session

Source

pub fn exclude_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> ExcludeFactor<Self>

Source§

impl Session

Source

pub fn set_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, value: Value, authorization: Token, ) -> SetFactor<Self>

Source§

impl Session

Source

pub fn get_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> GetFactor<Self>

Source§

impl Session

Source

pub fn clear_factor( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> ClearFactor<Self>

Source§

impl Session

Source

pub fn factor_count( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FactorCount<Self>

Source§

impl Session

Source

pub fn factor_member( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> FactorMember<Self>

Source§

impl Session

Source

pub fn factor_name( &self, entity: Entity, authorization: Token, ) -> FactorName<Self>

Source§

impl Session

Source

pub fn factor_key( &self, entity: Entity, attribute: Attribute, name: String255, index: i64, authorization: Token, ) -> FactorKey<Self>

Source§

impl Session

Source

pub fn factor_value( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> FactorValue<Self>

Source§

impl Session

Source

pub fn factor_index( &self, entity: Entity, attribute: Attribute, name: String255, key: String255, authorization: Token, ) -> FactorIndex<Self>

Source§

impl Session

Source

pub fn factor_attribute( &self, entity: Entity, authorization: Token, ) -> FactorAttribute<Self>

Source§

impl Session

Source

pub fn sort_factors( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> SortFactors<Self>

Source§

impl Session

Source

pub fn purge_factors( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> PurgeFactors<Self>

Source§

impl Session

Source

pub fn retrieve_factors( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> RetrieveFactors<Self>

Source§

impl Session

Source

pub fn insert_fact( &self, entity: Entity, attribute: Attribute, value: Value, authorization: Token, ) -> InsertFact<Self>

Source§

impl Session

Source

pub fn remove_fact( &self, entity: Entity, index: i64, authorization: Token, ) -> RemoveFact<Self>

Source§

impl Session

Source

pub fn replace_fact( &self, entity: Entity, index: i64, attribute: Attribute, value: Value, authorization: Token, ) -> ReplaceFact<Self>

Source§

impl Session

Source

pub fn find_fact( &self, entity: Entity, value: Value, authorization: Token, ) -> FindFact<Self>

Source§

impl Session

Source

pub fn include_fact( &self, entity: Entity, attribute: Attribute, value: Value, authorization: Token, ) -> IncludeFact<Self>

Source§

impl Session

Source

pub fn exclude_fact( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> ExcludeFact<Self>

Source§

impl Session

Source

pub fn set_fact( &self, entity: Entity, attribute: Attribute, value: Value, authorization: Token, ) -> SetFact<Self>

Source§

impl Session

Source

pub fn get_fact( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> GetFact<Self>

Source§

impl Session

Source

pub fn clear_fact( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> ClearFact<Self>

Source§

impl Session

Source

pub fn fact_count( &self, entity: Entity, authorization: Token, ) -> FactCount<Self>

Source§

impl Session

Source

pub fn fact_member( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FactMember<Self>

Source§

impl Session

Source

pub fn fact_name( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FactName<Self>

Source§

impl Session

Source

pub fn fact_key( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FactKey<Self>

Source§

impl Session

Source

pub fn fact_value( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FactValue<Self>

Source§

impl Session

Source

pub fn fact_index( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FactIndex<Self>

Source§

impl Session

Source

pub fn fact_attribute( &self, entity: Entity, index: i64, authorization: Token, ) -> FactAttribute<Self>

Source§

impl Session

Source

pub fn sort_facts( &self, entity: Entity, authorization: Token, ) -> SortFacts<Self>

Source§

impl Session

Source

pub fn purge_facts( &self, entity: Entity, authorization: Token, ) -> PurgeFacts<Self>

Source§

impl Session

Source

pub fn retrieve_facts( &self, entity: Entity, authorization: Token, ) -> RetrieveFacts<Self>

Source§

impl Session

Source

pub fn insert_feature( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, value: Value, authorization: Token, ) -> InsertFeature<Self>

Source§

impl Session

Source

pub fn remove_feature( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> RemoveFeature<Self>

Source§

impl Session

Source

pub fn replace_feature( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, value: Value, authorization: Token, ) -> ReplaceFeature<Self>

Source§

impl Session

Source

pub fn find_feature( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FindFeature<Self>

Source§

impl Session

Source

pub fn include_feature( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, value: Value, authorization: Token, ) -> IncludeFeature<Self>

Source§

impl Session

Source

pub fn exclude_feature( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> ExcludeFeature<Self>

Source§

impl Session

Source

pub fn set_feature( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, value: Value, authorization: Token, ) -> SetFeature<Self>

Source§

impl Session

Source

pub fn get_feature( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> GetFeature<Self>

Source§

impl Session

Source

pub fn clear_feature( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> ClearFeature<Self>

Source§

impl Session

Source

pub fn feature_count( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FeatureCount<Self>

Source§

impl Session

Source

pub fn feature_member( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FeatureMember<Self>

Source§

impl Session

Source

pub fn feature_name( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FeatureName<Self>

Source§

impl Session

Source

pub fn feature_key( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> FeatureKey<Self>

Source§

impl Session

Source

pub fn feature_value( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FeatureValue<Self>

Source§

impl Session

Source

pub fn feature_index( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FeatureIndex<Self>

Source§

impl Session

Source

pub fn feature_attribute( &self, entity: Entity, authorization: Token, ) -> FeatureAttribute<Self>

Source§

impl Session

Source

pub fn sort_features( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> SortFeatures<Self>

Source§

impl Session

Source

pub fn purge_features( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> PurgeFeatures<Self>

Source§

impl Session

Source

pub fn retrieve_features( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> RetrieveFeatures<Self>

Source§

impl Session

Source

pub fn insert_field( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> InsertField<Self>

Source§

impl Session

Source

pub fn remove_field( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> RemoveField<Self>

Source§

impl Session

Source

pub fn replace_field( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> ReplaceField<Self>

Source§

impl Session

Source

pub fn find_field( &self, entity: Entity, attribute: Attribute, value: Value, authorization: Token, ) -> FindField<Self>

Source§

impl Session

Source

pub fn include_field( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> IncludeField<Self>

Source§

impl Session

Source

pub fn exclude_field( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> ExcludeField<Self>

Source§

impl Session

Source

pub fn set_field( &self, entity: Entity, attribute: Attribute, name: String255, value: Value, authorization: Token, ) -> SetField<Self>

Source§

impl Session

Source

pub fn get_field( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> GetField<Self>

Source§

impl Session

Source

pub fn clear_field( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> ClearField<Self>

Source§

impl Session

Source

pub fn field_count( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FieldCount<Self>

Source§

impl Session

Source

pub fn field_member( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FieldMember<Self>

Source§

impl Session

Source

pub fn field_name( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> FieldName<Self>

Source§

impl Session

Source

pub fn field_key( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FieldKey<Self>

Source§

impl Session

Source

pub fn field_value( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FieldValue<Self>

Source§

impl Session

Source

pub fn field_index( &self, entity: Entity, attribute: Attribute, name: String255, authorization: Token, ) -> FieldIndex<Self>

Source§

impl Session

Source

pub fn field_attribute( &self, entity: Entity, authorization: Token, ) -> FieldAttribute<Self>

Source§

impl Session

Source

pub fn sort_fields( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> SortFields<Self>

Source§

impl Session

Source

pub fn purge_fields( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> PurgeFields<Self>

Source§

impl Session

Source

pub fn retrieve_fields( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> RetrieveFields<Self>

Source§

impl Session

Source

pub fn insert_frame( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> InsertFrame<Self>

Source§

impl Session

Source

pub fn remove_frame( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> RemoveFrame<Self>

Source§

impl Session

Source

pub fn replace_frame( &self, entity: Entity, attribute: Attribute, index: i64, key: String255, authorization: Token, ) -> ReplaceFrame<Self>

Source§

impl Session

Source

pub fn find_frame( &self, entity: Entity, authorization: Token, ) -> FindFrame<Self>

Source§

impl Session

Source

pub fn include_frame( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> IncludeFrame<Self>

Source§

impl Session

Source

pub fn exclude_frame( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> ExcludeFrame<Self>

Source§

impl Session

Source

pub fn set_frame( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, value: Value, authorization: Token, ) -> SetFrame<Self>

Source§

impl Session

Source

pub fn get_frame( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, authorization: Token, ) -> GetFrame<Self>

Source§

impl Session

Source

pub fn clear_frame( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, authorization: Token, ) -> ClearFrame<Self>

Source§

impl Session

Source

pub fn frame_count( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> FrameCount<Self>

Source§

impl Session

Source

pub fn frame_member( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FrameMember<Self>

Source§

impl Session

Source

pub fn frame_name( &self, entity: Entity, attribute: Attribute, offset: i32, authorization: Token, ) -> FrameName<Self>

Source§

impl Session

Source

pub fn frame_key( &self, entity: Entity, attribute: Attribute, index: i64, authorization: Token, ) -> FrameKey<Self>

Source§

impl Session

Source

pub fn frame_value( &self, entity: Entity, attribute: Attribute, key: String255, name: String255, authorization: Token, ) -> FrameValue<Self>

Source§

impl Session

Source

pub fn frame_index( &self, entity: Entity, attribute: Attribute, key: String255, authorization: Token, ) -> FrameIndex<Self>

Source§

impl Session

Source

pub fn frame_attribute( &self, entity: Entity, authorization: Token, ) -> FrameAttribute<Self>

Source§

impl Session

Source

pub fn sort_frames( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> SortFrames<Self>

Source§

impl Session

Source

pub fn purge_frames( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> PurgeFrames<Self>

Source§

impl Session

Source

pub fn retrieve_frames( &self, entity: Entity, attribute: Attribute, authorization: Token, ) -> RetrieveFrames<Self>

Source§

impl Session

Source

pub fn insert_property( &self, entity: Entity, key: String255, name: String255, value: Value, authorization: Token, ) -> InsertProperty<Self>

Source§

impl Session

Source

pub fn remove_property( &self, entity: Entity, index: i64, authorization: Token, ) -> RemoveProperty<Self>

Source§

impl Session

Source

pub fn replace_property( &self, entity: Entity, index: i64, key: String255, name: String255, value: Value, authorization: Token, ) -> ReplaceProperty<Self>

Source§

impl Session

Source

pub fn find_property( &self, entity: Entity, name: String255, value: Value, authorization: Token, ) -> FindProperty<Self>

Source§

impl Session

Source

pub fn include_property( &self, entity: Entity, key: String255, name: String255, value: Value, authorization: Token, ) -> IncludeProperty<Self>

Source§

impl Session

Source

pub fn exclude_property( &self, entity: Entity, key: String255, authorization: Token, ) -> ExcludeProperty<Self>

Source§

impl Session

Source

pub fn set_property( &self, entity: Entity, key: String255, name: String255, value: Value, authorization: Token, ) -> SetProperty<Self>

Source§

impl Session

Source

pub fn get_property( &self, entity: Entity, key: String255, authorization: Token, ) -> GetProperty<Self>

Source§

impl Session

Source

pub fn clear_property( &self, entity: Entity, key: String255, authorization: Token, ) -> ClearProperty<Self>

Source§

impl Session

Source

pub fn property_count( &self, entity: Entity, authorization: Token, ) -> PropertyCount<Self>

Source§

impl Session

Source

pub fn property_member( &self, entity: Entity, key: String255, authorization: Token, ) -> PropertyMember<Self>

Source§

impl Session

Source

pub fn property_name( &self, entity: Entity, key: String255, authorization: Token, ) -> PropertyName<Self>

Source§

impl Session

Source

pub fn property_key( &self, entity: Entity, index: i64, authorization: Token, ) -> PropertyKey<Self>

Source§

impl Session

Source

pub fn property_value( &self, entity: Entity, key: String255, authorization: Token, ) -> PropertyValue<Self>

Source§

impl Session

Source

pub fn property_index( &self, entity: Entity, key: String255, authorization: Token, ) -> PropertyIndex<Self>

Source§

impl Session

Source

pub fn property_attribute( &self, entity: Entity, authorization: Token, ) -> PropertyAttribute<Self>

Source§

impl Session

Source

pub fn sort_properties( &self, entity: Entity, authorization: Token, ) -> SortProperties<Self>

Source§

impl Session

Source

pub fn purge_properties( &self, entity: Entity, authorization: Token, ) -> PurgeProperties<Self>

Source§

impl Session

Source

pub fn retrieve_properties( &self, entity: Entity, authorization: Token, ) -> RetrieveProperties<Self>

Source§

impl Session

Source

pub fn create_registry( &self, name: String255, authorization: Token, ) -> CreateRegistry<Self>

Source§

impl Session

Source

pub fn delete_registry( &self, registry: Entity, authorization: Token, ) -> DeleteRegistry<Self>

Source§

impl Session

Source

pub fn register_entity( &self, registry: Entity, key: String255, name: String255, entity: Entity, authorization: Token, ) -> RegisterEntity<Self>

Source§

impl Session

Source

pub fn deregister_entity( &self, registry: Entity, key: String255, authorization: Token, ) -> DeregisterEntity<Self>

Source§

impl Session

Source

pub fn purge_registry( &self, registry: Entity, authorization: Token, ) -> PurgeRegistry<Self>

Source§

impl Session

Source

pub fn sort_registry( &self, registry: Entity, authorization: Token, ) -> SortRegistry<Self>

Source§

impl Session

Source

pub fn lookup_registry( &self, registry: Entity, key: String255, authorization: Token, ) -> LookupRegistry<Self>

Source§

impl Session

Source

pub fn registry_member( &self, registry: Entity, key: String255, authorization: Token, ) -> RegistryMember<Self>

Source§

impl Session

Source

pub fn registry_item( &self, registry: Entity, index: i64, authorization: Token, ) -> RegistryItem<Self>

Source§

impl Session

Source

pub fn registry_count( &self, registry: Entity, authorization: Token, ) -> RegistryCount<Self>

Source§

impl Session

Source

pub fn retrieve_registry( &self, registry: Entity, authorization: Token, ) -> RetrieveRegistry<Self>

Source§

impl Session

Source

pub fn save_entity( &self, entity: Entity, authorization: Token, ) -> SaveEntity<Self>

Source§

impl Session

Source

pub fn restore_entity( &self, entity: Entity, authorization: Token, ) -> RestoreEntity<Self>

Source§

impl Session

Source

pub fn retrieve_entity( &self, entity: Entity, authorization: Token, ) -> RetrieveEntity<Self>

Source§

impl Session

Source

pub fn store_entity( &self, entity: Entity, model: AvialModel, authorization: Token, ) -> StoreEntity<Self>

Source§

impl Session

Source

pub fn purge_entity( &self, entity: Entity, authorization: Token, ) -> PurgeEntity<Self>

Source§

impl Session

Source

pub fn redirect( &self, from: Entity, to: Entity, authorization: Token, ) -> Redirect<Self>

Source§

impl Session

Source

pub fn create_outlet( &self, name: String255, authorization: Token, ) -> CreateOutlet<Self>

Source§

impl Session

Source

pub fn create_object( &self, name: String255, authorization: Token, ) -> CreateObject<Self>

Source§

impl Session

Source

pub fn delete_object( &self, object: Entity, authorization: Token, ) -> DeleteObject<Self>

Source§

impl Session

Source

pub fn create_general( &self, name: String255, authorization: Token, ) -> CreateGeneral<Self>

Source§

impl Session

Source

pub fn delete_general( &self, general: Entity, authorization: Token, ) -> DeleteGeneral<Self>

Source§

impl Session

Source

pub fn invoke_locutor(&self, locutor: Locutor) -> InvokeLocutor<Self>

Source§

impl Session

Source

pub fn raw_message(&self, msg: HGTPMessage) -> RawMessage<Self>

Trait Implementations§

Source§

impl Clone for Session

Source§

fn clone(&self) -> Session

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl SessionTrait for Session

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V