Skip to main content

GeneratedLiveQuery

Trait GeneratedLiveQuery 

Source
pub trait GeneratedLiveQuery {
    type Update;

    // Required methods
    fn live_operation(
        self,
    ) -> Result<ApplicationReactiveOperation, ApplicationClientError>;
    fn decode_update(
        update: ApplicationLiveQueryUpdate,
    ) -> Result<Self::Update, ApplicationClientError>;
}
Expand description

One exact generated live named-query watch and closed update decoder.

Required Associated Types§

Source

type Update

Closed generated update union.

Required Methods§

Source

fn live_operation( self, ) -> Result<ApplicationReactiveOperation, ApplicationClientError>

Constructs the exact immutable watch operation.

Source

fn decode_update( update: ApplicationLiveQueryUpdate, ) -> Result<Self::Update, ApplicationClientError>

Decodes one structurally checked application-safe update.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§