Struct linera_execution::ChannelSubscription
source · pub struct ChannelSubscription {
pub chain_id: ChainId,
pub name: ChannelName,
}Expand description
The identifier of a channel, relative to a particular application.
Fields§
§chain_id: ChainIdThe chain ID broadcasting on this channel.
name: ChannelNameThe name of the channel.
Implementations§
Trait Implementations§
source§impl Clone for ChannelSubscription
impl Clone for ChannelSubscription
source§fn clone(&self) -> ChannelSubscription
fn clone(&self) -> ChannelSubscription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ContainerType for ChannelSubscription
impl ContainerType for ChannelSubscription
source§async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
Resolves a field value and outputs it as a json value
async_graphql::Value. Read moresource§fn collect_all_fields<'a>(
&'a self,
ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>,
fields: &mut Fields<'a>
) -> Result<(), ServerError>
fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a> ) -> Result<(), ServerError>
Collect all the fields of the container that are queried in the
selection set. Read more
source§fn find_entity(
&self,
_: &ContextBase<'_, &Positioned<Field>>,
_params: &ConstValue
) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
fn find_entity( &self, _: &ContextBase<'_, &Positioned<Field>>, _params: &ConstValue ) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
Find the GraphQL entity with the given name from the parameter. Read more
source§impl Debug for ChannelSubscription
impl Debug for ChannelSubscription
source§impl<'de> Deserialize<'de> for ChannelSubscription
impl<'de> Deserialize<'de> for ChannelSubscription
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 Hash for ChannelSubscription
impl Hash for ChannelSubscription
source§impl Ord for ChannelSubscription
impl Ord for ChannelSubscription
source§fn cmp(&self, other: &ChannelSubscription) -> Ordering
fn cmp(&self, other: &ChannelSubscription) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl OutputType for ChannelSubscription
impl OutputType for ChannelSubscription
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§async fn resolve(
&self,
ctx: &ContextSelectionSet<'_>,
_field: &Positioned<Field>
) -> ServerResult<Value>
async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field> ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl PartialEq for ChannelSubscription
impl PartialEq for ChannelSubscription
source§fn eq(&self, other: &ChannelSubscription) -> bool
fn eq(&self, other: &ChannelSubscription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ChannelSubscription
impl PartialOrd for ChannelSubscription
source§fn partial_cmp(&self, other: &ChannelSubscription) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelSubscription) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ChannelSubscription
impl Serialize for ChannelSubscription
impl Eq for ChannelSubscription
impl ObjectType for ChannelSubscription
impl StructuralPartialEq for ChannelSubscription
Auto Trait Implementations§
impl Freeze for ChannelSubscription
impl RefUnwindSafe for ChannelSubscription
impl Send for ChannelSubscription
impl Sync for ChannelSubscription
impl Unpin for ChannelSubscription
impl UnwindSafe for ChannelSubscription
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.