Struct routing::PublicId [] [src]

pub struct PublicId {
    // some fields omitted
}

Network identity component containing name and public keys.

Methods

impl PublicId
[src]

fn name(&self) -> &XorName

Return initial/relocated name.

fn set_name(&mut self, name: XorName)

Name field is initially same as original_name, this should be replaced by relocated name calculated by the nodes close to original_name by using this method

fn encrypting_public_key(&self) -> &PublicKey

Return public signing key.

fn signing_public_key(&self) -> &PublicKey

Return public signing key.

Trait Implementations

impl Decodable for PublicId
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PublicId, __D::Error>

impl Encodable for PublicId
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for PublicId
[src]

fn clone(&self) -> PublicId

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for PublicId
[src]

impl Ord for PublicId
[src]

fn cmp(&self, __arg_0: &PublicId) -> Ordering

This method returns an Ordering between self and other. Read more

impl PartialOrd for PublicId
[src]

fn partial_cmp(&self, __arg_0: &PublicId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &PublicId) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &PublicId) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &PublicId) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &PublicId) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for PublicId
[src]

impl PartialEq for PublicId
[src]

fn eq(&self, __arg_0: &PublicId) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &PublicId) -> bool

This method tests for !=.

impl Hash for PublicId
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

impl Debug for PublicId
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.