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
impl IntermediateAddr
Sourcepub const FULL_DEST_SAME_WORKCHAIN: Self
pub const FULL_DEST_SAME_WORKCHAIN: Self
Full destination address within the same workchain.
Sourcepub const FULL_SRC_SAME_WORKCHAIN: Self
pub const FULL_SRC_SAME_WORKCHAIN: Self
Full source address within the same workchain.
Sourcepub const FULL_MASTERCHAIN: Self
pub const FULL_MASTERCHAIN: Self
Full destination address within masterchain.
Sourcepub fn workchain(&self) -> Option<i32>
pub fn workchain(&self) -> Option<i32>
Returns target workchain id if specified.
Returns None if the same workchain is used.
Sourcepub fn address_prefix(&self) -> Option<u64>
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
impl Clone for IntermediateAddr
Source§fn clone(&self) -> IntermediateAddr
fn clone(&self) -> IntermediateAddr
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntermediateAddr
impl Debug for IntermediateAddr
Source§impl From<IntermediateAddrExt> for IntermediateAddr
impl From<IntermediateAddrExt> for IntermediateAddr
Source§fn from(addr: IntermediateAddrExt) -> Self
fn from(addr: IntermediateAddrExt) -> Self
Converts to this type from the input type.
Source§impl From<IntermediateAddrRegular> for IntermediateAddr
impl From<IntermediateAddrRegular> for IntermediateAddr
Source§fn from(addr: IntermediateAddrRegular) -> Self
fn from(addr: IntermediateAddrRegular) -> Self
Converts to this type from the input type.
Source§impl From<IntermediateAddrSimple> for IntermediateAddr
impl From<IntermediateAddrSimple> for IntermediateAddr
Source§fn from(addr: IntermediateAddrSimple) -> Self
fn from(addr: IntermediateAddrSimple) -> Self
Converts to this type from the input type.
Source§impl Hash for IntermediateAddr
impl Hash for IntermediateAddr
Source§impl<'a> Load<'a> for IntermediateAddr
impl<'a> Load<'a> for IntermediateAddr
Source§impl PartialEq for IntermediateAddr
impl PartialEq for IntermediateAddr
Source§impl Serialize for IntermediateAddr
impl Serialize for IntermediateAddr
Source§impl Store for IntermediateAddr
impl Store for IntermediateAddr
Source§fn store_into(
&self,
builder: &mut CellBuilder,
cx: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, cx: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for IntermediateAddr
impl StructuralPartialEq for IntermediateAddr
Auto Trait Implementations§
impl Freeze for IntermediateAddr
impl RefUnwindSafe for IntermediateAddr
impl Send for IntermediateAddr
impl Sync for IntermediateAddr
impl Unpin for IntermediateAddr
impl UnwindSafe for IntermediateAddr
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.