Enum linera_execution::Query
source · pub enum Query {
System(SystemQuery),
User {
application_id: UserApplicationId,
bytes: Vec<u8>,
},
}Expand description
An query to be sent and possibly executed in the receiver’s block.
Variants§
Implementations§
source§impl Query
impl Query
pub fn system(query: SystemQuery) -> Self
pub fn user<A: Abi>( application_id: UserApplicationId<A>, query: &A::Query ) -> Result<Self, Error>
pub fn application_id(&self) -> GenericApplicationId
Trait Implementations§
source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SystemQuery> for Query
impl From<SystemQuery> for Query
source§fn from(query: SystemQuery) -> Self
fn from(query: SystemQuery) -> Self
Converts to this type from the input type.
source§impl PartialEq for Query
impl PartialEq for Query
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.