Enum crust::CrustUser [] [src]

pub enum CrustUser {
    Node,
    Client,
}

Specify crust user. Behaviour (for example in bootstrap phase) will be different for different variants. Node will request the Bootstrapee to connect back to this crust failing which it would mean it's not reachable from outside and hence should be rejected bootstrap attempts.

Variants

Crust user is a Node and should not be allowed to bootstrap if it's not reachable from outside.

Crust user is a Client and should be allowed to bootstrap even if it's not reachable from outside.

Trait Implementations

impl Debug for CrustUser
[src]

[src]

Formats the value using the given formatter.

impl Clone for CrustUser
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CrustUser
[src]

impl Eq for CrustUser
[src]

impl PartialEq for CrustUser
[src]

[src]

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

1.0.0
[src]

This method tests for !=.