1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// Copyright 2019 Contributors to the Parsec project.
// SPDX-License-Identifier: Apache-2.0
//! # ListOpcodes operation
//!
//! List the opcodes supported by the provider.
use crate::requests::{Opcode, ProviderId};
use std::collections::HashSet;
/// Native object for opcode listing operation.
#[derive(Copy, Clone, Debug)]
pub struct Operation {
/// Provider for which the supported opcodes are requsted.
pub provider_id: ProviderId,
}
/// Native object for opcode listing result.
#[derive(Debug)]
pub struct Result {
/// `opcodes` holds a list of opcodes supported by the provider identified in
/// the request.
pub opcodes: HashSet<Opcode>,
}