IPCChainTesterSyncClient

Struct IPCChainTesterSyncClient 

Source
pub struct IPCChainTesterSyncClient<IP, OP>{ /* private fields */ }

Implementations§

Source§

impl<IP, OP> IPCChainTesterSyncClient<IP, OP>

Source

pub fn new( input_protocol: IP, output_protocol: OP, ) -> IPCChainTesterSyncClient<IP, OP>

Trait Implementations§

Source§

impl<IP, OP> TThriftClient for IPCChainTesterSyncClient<IP, OP>

Source§

fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol

Returns the input protocol used to read serialized Thrift messages from the Thrift server.
Source§

fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol

Returns the output protocol used to write serialized Thrift messages to the Thrift server.
Source§

fn sequence_number(&self) -> i32

Returns the sequence number of the last message written to the Thrift server. Returns 0 if no messages have been written. Sequence numbers should never be negative, and this method returns an i32 simply because the Thrift protocol encodes sequence numbers as i32 on the wire.
Source§

fn increment_sequence_number(&mut self) -> i32

Increments the sequence number, indicating that a message with that number has been sent to the Thrift server.
Source§

impl<IP, OP> TIPCChainTesterSyncClientMarker for IPCChainTesterSyncClient<IP, OP>

Auto Trait Implementations§

§

impl<IP, OP> Freeze for IPCChainTesterSyncClient<IP, OP>
where IP: Freeze, OP: Freeze,

§

impl<IP, OP> RefUnwindSafe for IPCChainTesterSyncClient<IP, OP>

§

impl<IP, OP> Send for IPCChainTesterSyncClient<IP, OP>
where IP: Send, OP: Send,

§

impl<IP, OP> Sync for IPCChainTesterSyncClient<IP, OP>
where IP: Sync, OP: Sync,

§

impl<IP, OP> Unpin for IPCChainTesterSyncClient<IP, OP>
where IP: Unpin, OP: Unpin,

§

impl<IP, OP> UnwindSafe for IPCChainTesterSyncClient<IP, OP>
where IP: UnwindSafe, OP: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<C> TIPCChainTesterSyncClient for C

Source§

fn init_vm_api(&mut self) -> Result<(), Error>

Source§

fn init_apply_request(&mut self) -> Result<(), Error>

Source§

fn enable_debug_contract( &mut self, id: i32, contract: String, enable: bool, ) -> Result<(), Error>

Source§

fn is_debug_contract_enabled( &mut self, id: i32, contract: String, ) -> Result<bool, Error>

Source§

fn pack_abi(&mut self, abi: String) -> Result<Vec<u8>, Error>

Source§

fn pack_action_args( &mut self, id: i32, contract: String, action: String, action_args: String, ) -> Result<Vec<u8>, Error>

Source§

fn unpack_action_args( &mut self, id: i32, contract: String, action: String, raw_args: Vec<u8>, ) -> Result<Vec<u8>, Error>

Source§

fn new_chain(&mut self) -> Result<i32, Error>

Source§

fn free_chain(&mut self, id: i32) -> Result<i32, Error>

Source§

fn get_info(&mut self, id: i32) -> Result<String, Error>

Source§

fn get_account(&mut self, id: i32, account: String) -> Result<String, Error>

Source§

fn import_key( &mut self, id: i32, pub_key: String, priv_key: String, ) -> Result<bool, Error>

Source§

fn get_required_keys( &mut self, id: i32, transaction: String, available_keys: Vec<String>, ) -> Result<String, Error>

Source§

fn produce_block(&mut self, id: i32) -> Result<(), Error>

Source§

fn push_action( &mut self, id: i32, account: String, action: String, arguments: String, permissions: String, ) -> Result<Vec<u8>, Error>

Source§

fn push_actions( &mut self, id: i32, actions: Vec<Box<Action>>, ) -> Result<Vec<u8>, Error>

Source§

fn get_table_rows( &mut self, id: i32, json: bool, code: String, scope: String, table: String, lower_bound: String, upper_bound: String, limit: i64, key_type: String, index_position: String, reverse: bool, show_payer: bool, ) -> Result<String, Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.