Struct rhoast_client_v03::grpc::Grpc
source · pub struct Grpc {
pub host: String,
}
Fields§
§host: String
Implementations§
source§impl Grpc
impl Grpc
pub async fn do_deploy_util( &self, payload: DeployDataProto ) -> Result<DeployResponse, Error>
pub async fn get_block_util( &self, payload: BlockQuery ) -> Result<BlockResponse, Error>
pub async fn machine_verification_dag_util( &self, payload: MachineVerifyQuery ) -> Result<MachineVerifyResponse, Error>
pub async fn listen_for_date_at_name_util( &self, payload: DataAtNameQuery ) -> Result<ListeningNameDataResponse, Error>
pub async fn get_date_at_name_util( &self, payload: DataAtNameByBlockQuery ) -> Result<RhoDataResponse, Error>
pub async fn listen_for_continuation_at_name_util( &self, payload: ContinuationAtNameQuery ) -> Result<ContinuationAtNameResponse, Error>
pub async fn find_deploy_util( &self, payload: FindDeployQuery ) -> Result<FindDeployResponse, Error>
pub async fn prview_private_names_util( &self, payload: PrivateNamePreviewQuery ) -> Result<PrivateNamePreviewResponse, Error>
pub async fn last_finalized_block_util( &self, payload: LastFinalizedBlockQuery ) -> Result<LastFinalizedBlockResponse, Error>
pub async fn is_finalized_util( &self, payload: IsFinalizedQuery ) -> Result<IsFinalizedResponse, Error>
pub async fn bond_status_util( &self, payload: BondStatusQuery ) -> Result<BondStatusResponse, Error>
pub async fn exploratory_deploy_util( &self, payload: ExploratoryDeployQuery ) -> Result<ExploratoryDeployResponse, Error>
pub async fn get_event_by_hash_util( &self, payload: ReportQuery ) -> Result<EventInfoResponse, Error>
pub async fn status_util(&self, payload: ()) -> Result<StatusResponse, Error>
pub async fn visualize_dag_util_stream<T>( &self, payload: VisualizeDagQuery, func: fn(_: &VisualizeBlocksResponse) -> T, num: Option<usize> ) -> Result<(), Error>
pub async fn show_main_chain_util_stream<T>( &self, payload: BlocksQuery, func: fn(_: &BlockInfoResponse) -> T, num: Option<usize> ) -> Result<(), Error>
pub async fn show_blocks_util_stream<T>( &self, payload: BlocksQuery, func: fn(_: &BlockInfoResponse) -> T, num: Option<usize> ) -> Result<(), Error>
pub async fn get_blocks_by_height_util_stream<T>( &self, payload: BlocksQueryByHeight, func: fn(_: &BlockInfoResponse) -> T, num: Option<usize> ) -> Result<(), Error>
source§impl Grpc
impl Grpc
pub fn new(host: &str) -> Self
pub async fn propose(&self, payload: bool) -> Result<ProposeResponse, Error>
pub async fn propose_result( &self, payload: ProposeResultQuery ) -> Result<ProposeResultResponse, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Grpc
impl Send for Grpc
impl Sync for Grpc
impl Unpin for Grpc
impl UnwindSafe for Grpc
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request