pub enum CommonMsgInfo {
Int(CommonMsgInfoInt),
ExtIn(CommonMsgInfoExtIn),
ExtOut(CommonMsgInfoExtOut),
}Variants§
Implementations§
Source§impl CommonMsgInfo
impl CommonMsgInfo
pub fn as_int(&self) -> Option<&CommonMsgInfoInt>
pub fn as_int_mut(&mut self) -> Option<&mut CommonMsgInfoInt>
pub fn into_int(self) -> Option<CommonMsgInfoInt>
pub fn as_ext_in(&self) -> Option<&CommonMsgInfoExtIn>
pub fn as_ext_in_mut(&mut self) -> Option<&mut CommonMsgInfoExtIn>
pub fn into_ext_in(self) -> Option<CommonMsgInfoExtIn>
pub fn as_ext_out(&self) -> Option<&CommonMsgInfoExtOut>
pub fn as_ext_out_mut(&mut self) -> Option<&mut CommonMsgInfoExtOut>
pub fn into_ext_out(self) -> Option<CommonMsgInfoExtOut>
Trait Implementations§
Source§impl Clone for CommonMsgInfo
impl Clone for CommonMsgInfo
Source§fn clone(&self) -> CommonMsgInfo
fn clone(&self) -> CommonMsgInfo
Returns a duplicate 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 Debug for CommonMsgInfo
impl Debug for CommonMsgInfo
Source§impl Default for CommonMsgInfo
impl Default for CommonMsgInfo
Source§impl From<CommonMsgInfoExtIn> for CommonMsgInfo
impl From<CommonMsgInfoExtIn> for CommonMsgInfo
Source§fn from(v: CommonMsgInfoExtIn) -> Self
fn from(v: CommonMsgInfoExtIn) -> Self
Converts to this type from the input type.
Source§impl From<CommonMsgInfoExtOut> for CommonMsgInfo
impl From<CommonMsgInfoExtOut> for CommonMsgInfo
Source§fn from(v: CommonMsgInfoExtOut) -> Self
fn from(v: CommonMsgInfoExtOut) -> Self
Converts to this type from the input type.
Source§impl From<CommonMsgInfoInt> for CommonMsgInfo
impl From<CommonMsgInfoInt> for CommonMsgInfo
Source§fn from(v: CommonMsgInfoInt) -> Self
fn from(v: CommonMsgInfoInt) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommonMsgInfo
impl PartialEq for CommonMsgInfo
Source§impl TLB for CommonMsgInfo
impl TLB for CommonMsgInfo
const PREFIX: TLBPrefix
Source§fn read_definition(parser: &mut CellParser<'_>) -> Result<Self, TLCoreError>
fn read_definition(parser: &mut CellParser<'_>) -> Result<Self, TLCoreError>
read-write definition
https://docs.ton.org/v3/documentation/data-formats/tlb/tl-b-language#overview
must be implemented by all TLB objects
doesn’t include prefix handling
fn write_definition(&self, builder: &mut CellBuilder) -> Result<(), TLCoreError>
Source§fn read(parser: &mut CellParser<'_>) -> Result<Self, TLCoreError>
fn read(parser: &mut CellParser<'_>) -> Result<Self, TLCoreError>
interface - must be used by external code to read/write TLB objects
fn write(&self, builder: &mut CellBuilder) -> Result<(), TLCoreError>
fn cell_hash(&self) -> Result<TonHash, TLCoreError>
fn from_boc(boc: &[u8]) -> Result<Self, TLCoreError>
fn from_boc_hex(boc: &str) -> Result<Self, TLCoreError>
fn from_boc_b64(boc: &str) -> Result<Self, TLCoreError>
fn to_cell_ref(&self) -> Result<TonCellRef, TLCoreError>
fn to_boc(&self) -> Result<Vec<u8>, TLCoreError>
fn to_boc_hex(&self) -> Result<String, TLCoreError>
fn to_boc_base64(&self) -> Result<String, TLCoreError>
fn to_boc_extra(&self, add_crc32: bool) -> Result<Vec<u8>, TLCoreError>
fn to_boc_hex_extra(&self, add_crc32: bool) -> Result<String, TLCoreError>
fn to_boc_base64_extra(&self, add_crc32: bool) -> Result<String, TLCoreError>
Source§fn verify_prefix(reader: &mut CellParser<'_>) -> Result<(), TLCoreError>
fn verify_prefix(reader: &mut CellParser<'_>) -> Result<(), TLCoreError>
Helpers - mostly for internal use
fn write_prefix(builder: &mut CellBuilder) -> Result<(), TLCoreError>
fn cell_type(&self) -> CellType
impl StructuralPartialEq for CommonMsgInfo
Auto Trait Implementations§
impl Freeze for CommonMsgInfo
impl RefUnwindSafe for CommonMsgInfo
impl Send for CommonMsgInfo
impl Sync for CommonMsgInfo
impl Unpin for CommonMsgInfo
impl UnsafeUnpin for CommonMsgInfo
impl UnwindSafe for CommonMsgInfo
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