Enum everscale_types::models::message::IntermediateAddr

source ·
pub enum IntermediateAddr {
    Regular(IntermediateAddrRegular),
    Simple(IntermediateAddrSimple),
    Ext(IntermediateAddrExt),
}
Expand description

Next-hop address for a message.

Variants§

§

Regular(IntermediateAddrRegular)

Destination prefix length whithin the same workchain.

§

Simple(IntermediateAddrSimple)

Address prefix with a basic workchain id.

§

Ext(IntermediateAddrExt)

Address prefix with an extended workchain id.

Implementations§

source§

impl IntermediateAddr

source

pub const FULL_DEST_SAME_WORKCHAIN: Self = _

Full destination address within the same workchain.

source

pub const FULL_SRC_SAME_WORKCHAIN: Self = _

Full source address within the same workchain.

source

pub const FULL_MASTERCHAIN: Self = _

Full destination address within masterchain.

source

pub fn workchain(&self) -> Option<i32>

Returns target workchain id if specified. Returns None if the same workchain is used.

source

pub fn address_prefix(&self) -> Option<u64>

Returns the address prefix if specified. Returns None if bits length is used.

Trait Implementations§

source§

impl Clone for IntermediateAddr

source§

fn clone(&self) -> IntermediateAddr

Returns a copy 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 IntermediateAddr

source§

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

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

impl From<IntermediateAddrExt> for IntermediateAddr

source§

fn from(addr: IntermediateAddrExt) -> Self

Converts to this type from the input type.
source§

impl From<IntermediateAddrRegular> for IntermediateAddr

source§

fn from(addr: IntermediateAddrRegular) -> Self

Converts to this type from the input type.
source§

impl From<IntermediateAddrSimple> for IntermediateAddr

source§

fn from(addr: IntermediateAddrSimple) -> Self

Converts to this type from the input type.
source§

impl Hash for IntermediateAddr

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Load<'a> for IntermediateAddr

source§

fn load_from(slice: &mut CellSlice<'a>) -> Result<Self, Error>

Tries to load itself from a cell slice.
source§

impl PartialEq for IntermediateAddr

source§

fn eq(&self, other: &IntermediateAddr) -> 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 Serialize for IntermediateAddr

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Store for IntermediateAddr

source§

fn store_into( &self, builder: &mut CellBuilder, cx: &mut dyn CellContext, ) -> Result<(), Error>

Tries to store itself into the cell builder.
source§

impl Eq for IntermediateAddr

source§

impl StructuralPartialEq for IntermediateAddr

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<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> EquivalentRepr<T> for T