Struct duniter_wotb::data::rusty::RustyWebOfTrust [] [src]

pub struct RustyWebOfTrust { /* fields omitted */ }

A more idiomatic implementation of a Web of Trust.

Trait Implementations

impl Debug for RustyWebOfTrust
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RustyWebOfTrust
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RustyWebOfTrust
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for RustyWebOfTrust
[src]

impl WebOfTrust for RustyWebOfTrust
[src]

[src]

Create a new Web of Trust with the maximum of links a node can issue.

Get the maximum number of links per user.

Set the maximum number of links per user.

[src]

Add a new node.

[src]

Remove the last node. Returns None if the WoT was empty, otherwise new top node id. Read more

[src]

Get the size of the WoT.

[src]

Check if given node is enabled. Returns None if this node doesn't exist. Read more

[src]

Set the enabled state of given node. Returns Null if this node doesn't exist, enabled otherwise. Read more

[src]

Get enabled node array.

[src]

Get disabled node array.

Try to add a link from the source to the target.

Try to remove a link from the source to the target.

Test if there is a link from the source to the target.

Get the list of links source for this target. Returns None if this node doesn't exist. Read more

[src]

Get the number of issued links by a node. Returns None if this node doesn't exist. Read more

[src]

Test if a node is a sentry.

[src]

Get sentries array.

[src]

Get non sentries array.

Auto Trait Implementations