Response

Enum Response 

Source
pub enum Response {
Show 28 variants MasterchainInfo(MasterchainInfo), MasterchainInfoExt(MasterchainInfoExt), CurrentTime(CurrentTime), Version(Version), BlockData(BlockData), BlockState(BlockState), BlockHeader(BlockHeader), SendMsgStatus(SendMsgStatus), AccountState(AccountState), RunMethodResult(RunMethodResult), ShardInfo(ShardInfo), AllShardsInfo(AllShardsInfo), TransactionInfo(TransactionInfo), TransactionList(TransactionList), TransactionId(TransactionId), BlockTransactions(BlockTransactions), PartialBlockProof(PartialBlockProof), ConfigInfo(ConfigInfo), ValidatorStats(ValidatorStats), LibraryResult(LibraryResult), LibraryResultWithProof(LibraryResultWithProof), ShardBlockProof(ShardBlockProof), LookupBlockResult(LookupBlockResult), OutMsgQueueSizes(OutMsgQueueSizes), BlockOutMsgQueueSize(BlockOutMsgQueueSize), DispatchQueueInfo(DispatchQueueInfo), DispatchQueueMessages(DispatchQueueMessages), Error(Error),
}

Variants§

§

MasterchainInfo(MasterchainInfo)

liteServer.masterchainInfo last:tonNode.blockIdExt state_root_hash:int256 init:tonNode.zeroStateIdExt = liteServer.MasterchainInfo;

§

MasterchainInfoExt(MasterchainInfoExt)

liteServer.masterchainInfoExt mode:# version:int capabilities:long last:tonNode.blockIdExt last_utime:int now:int state_root_hash:int256 init:tonNode.zeroStateIdExt = liteServer.MasterchainInfoExt;

§

CurrentTime(CurrentTime)

liteServer.currentTime now:int = liteServer.CurrentTime;

§

Version(Version)

liteServer.version mode:# version:int capabilities:long now:int = liteServer.Version;

§

BlockData(BlockData)

liteServer.blockData id:tonNode.blockIdExt data:bytes = liteServer.BlockData;

§

BlockState(BlockState)

liteServer.blockState id:tonNode.blockIdExt root_hash:int256 file_hash:int256 data:bytes = liteServer.BlockState;

§

BlockHeader(BlockHeader)

liteServer.blockHeader id:tonNode.blockIdExt mode:# header_proof:bytes = liteServer.BlockHeader;

§

SendMsgStatus(SendMsgStatus)

liteServer.sendMsgStatus status:int = liteServer.SendMsgStatus;

§

AccountState(AccountState)

liteServer.accountState id:tonNode.blockIdExt shardblk:tonNode.blockIdExt shard_proof:bytes proof:bytes state:bytes = liteServer.AccountState;

§

RunMethodResult(RunMethodResult)

liteServer.runMethodResult mode:# id:tonNode.blockIdExt shardblk:tonNode.blockIdExt shard_proof:mode.0?bytes proof:mode.0?bytes state_proof:mode.1?bytes init_c7:mode.3?bytes lib_extras:mode.4?bytes exit_code:int result:mode.2?bytes = liteServer.RunMethodResult;

§

ShardInfo(ShardInfo)

liteServer.shardInfo id:tonNode.blockIdExt shardblk:tonNode.blockIdExt shard_proof:bytes shard_descr:bytes = liteServer.ShardInfo;

§

AllShardsInfo(AllShardsInfo)

liteServer.allShardsInfo id:tonNode.blockIdExt proof:bytes data:bytes = liteServer.AllShardsInfo;

§

TransactionInfo(TransactionInfo)

liteServer.transactionInfo id:tonNode.blockIdExt proof:bytes transaction:bytes = liteServer.TransactionInfo;

§

TransactionList(TransactionList)

liteServer.transactionList ids:(vector tonNode.blockIdExt) transactions:bytes = liteServer.TransactionList;

§

TransactionId(TransactionId)

liteServer.transactionId mode:# account:mode.0?int256 lt:mode.1?long hash:mode.2?int256 metadata:mode.8?liteServer.transactionMetadata = liteServer.TransactionId;

§

BlockTransactions(BlockTransactions)

liteServer.blockTransactions id:tonNode.blockIdExt req_count:# incomplete:Bool ids:(vector liteServer.transactionId) proof:bytes = liteServer.BlockTransactions;

§

PartialBlockProof(PartialBlockProof)

liteServer.partialBlockProof complete:Bool from:tonNode.blockIdExt to:tonNode.blockIdExt steps:(vector liteServer.BlockLink) = liteServer.PartialBlockProof;

§

ConfigInfo(ConfigInfo)

liteServer.configInfo mode:# id:tonNode.blockIdExt state_proof:bytes config_proof:bytes = liteServer.ConfigInfo;

§

ValidatorStats(ValidatorStats)

liteServer.validatorStats mode:# id:tonNode.blockIdExt count:int complete:Bool state_proof:bytes data_proof:bytes = liteServer.ValidatorStats;

§

LibraryResult(LibraryResult)

liteServer.libraryResult result:(vector liteServer.libraryEntry) = liteServer.LibraryResult;

§

LibraryResultWithProof(LibraryResultWithProof)

liteServer.libraryResult result:(vector liteServer.libraryEntry) = liteServer.LibraryResult;

§

ShardBlockProof(ShardBlockProof)

liteServer.shardBlockProof masterchain_id:tonNode.blockIdExt links:(vector liteServer.shardBlockLink) = liteServer.ShardBlockProof;

§

LookupBlockResult(LookupBlockResult)

liteServer.lookupBlockResult id:tonNode.blockIdExt mode:# mc_block_id:tonNode.blockIdExt client_mc_state_proof:bytes mc_block_proof:bytes shard_links:(vector liteServer.shardBlockLink) header:bytes prev_header:bytes = liteServer.LookupBlockResult;

§

OutMsgQueueSizes(OutMsgQueueSizes)

liteServer.outMsgQueueSizes shards:(vector liteServer.outMsgQueueSize) ext_msg_queue_size_limit:int = liteServer.OutMsgQueueSizes;

§

BlockOutMsgQueueSize(BlockOutMsgQueueSize)

liteServer.blockOutMsgQueueSize mode:# id:tonNode.blockIdExt size:long proof:mode.0?bytes = liteServer.BlockOutMsgQueueSize;

§

DispatchQueueInfo(DispatchQueueInfo)

liteServer.dispatchQueueInfo mode:# id:tonNode.blockIdExt account_dispatch_queues:(vector liteServer.accountDispatchQueueInfo) complete:Bool proof:mode.0?bytes = liteServer.DispatchQueueInfo;

§

DispatchQueueMessages(DispatchQueueMessages)

liteServer.dispatchQueueMessages mode:# id:tonNode.blockIdExt messages:(vector liteServer.dispatchQueueMessage) complete:Bool proof:mode.0?bytes messages_boc:mode.2?bytes = liteServer.DispatchQueueMessages;

§

Error(Error)

liteServer.error code:int message:string = liteServer.Error;

Implementations§

Source§

impl<'tl> Response

Source

pub const TL_ID_MASTERCHAIN_INFO: u32 = 2_239_965_313u32

Source

pub const TL_ID_MASTERCHAIN_INFO_EXT: u32 = 2_831_999_221u32

Source

pub const TL_ID_CURRENT_TIME: u32 = 3_914_530_829u32

Source

pub const TL_ID_VERSION: u32 = 1_510_248_933u32

Source

pub const TL_ID_BLOCK_DATA: u32 = 2_775_903_596u32

Source

pub const TL_ID_BLOCK_STATE: u32 = 2_880_297_996u32

Source

pub const TL_ID_BLOCK_HEADER: u32 = 1_965_916_697u32

Source

pub const TL_ID_SEND_MSG_STATUS: u32 = 961_602_967u32

Source

pub const TL_ID_ACCOUNT_STATE: u32 = 1_887_029_073u32

Source

pub const TL_ID_RUN_METHOD_RESULT: u32 = 2_744_803_691u32

Source

pub const TL_ID_SHARD_INFO: u32 = 2_682_703_236u32

Source

pub const TL_ID_ALL_SHARDS_INFO: u32 = 160_425_773u32

Source

pub const TL_ID_TRANSACTION_INFO: u32 = 249_490_759u32

Source

pub const TL_ID_TRANSACTION_LIST: u32 = 1_864_812_043u32

Source

pub const TL_ID_TRANSACTION_ID: u32 = 2_972_673_455u32

Source

pub const TL_ID_BLOCK_TRANSACTIONS: u32 = 3_180_113_195u32

Source

pub const TL_ID_PARTIAL_BLOCK_PROOF: u32 = 2_396_050_113u32

Source

pub const TL_ID_CONFIG_INFO: u32 = 2_927_306_543u32

Source

pub const TL_ID_VALIDATOR_STATS: u32 = 3_120_010_968u32

Source

pub const TL_ID_LIBRARY_RESULT: u32 = 293_255_531u32

Source

pub const TL_ID_LIBRARY_RESULT_WITH_PROOF: u32 = 279_521_215u32

Source

pub const TL_ID_SHARD_BLOCK_PROOF: u32 = 493_002_874u32

Source

pub const TL_ID_LOOKUP_BLOCK_RESULT: u32 = 2_574_805_991u32

Source

pub const TL_ID_OUT_MSG_QUEUE_SIZES: u32 = 4_166_011_395u32

Source

pub const TL_ID_BLOCK_OUT_MSG_QUEUE_SIZE: u32 = 2_328_739_355u32

Source

pub const TL_ID_DISPATCH_QUEUE_INFO: u32 = 1_561_408_208u32

Source

pub const TL_ID_DISPATCH_QUEUE_MESSAGES: u32 = 1_262_516_529u32

Source

pub const TL_ID_ERROR: u32 = 3_148_472_648u32

Trait Implementations§

Source§

impl Clone for Response

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Response

Source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Response

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'tl> TlRead<'tl> for Response

Source§

type Repr = Boxed

Serialized object representation.
Source§

fn read_from(__packet: &'tl [u8], __offset: &mut usize) -> TlResult<Self>

Tries to read itself from bytes at the specified offset, incrementing that offset.
Source§

impl TlWrite for Response

Source§

type Repr = Boxed

Serialized object representation.
Source§

fn max_size_hint(&self) -> usize

Max required number of bytes.
Source§

fn write_to<P_>(&self, __packet: &mut P_)
where P_: TlPacket,

Writes itself to the specified TlPacket.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more