pub struct Cache { /* private fields */ }
Expand description

A file-backed implementation of Store.

Implementations

Open an existing cache.

Create a new cache.

Create a new cache from a file.

Trait Implementations

Formats the value using the given formatter. Read more
Get a known peer address mutably.
Get a known peer address.
Remove an address from the store.
Insert a new address into the store. Returns true if the address was inserted, or false if it was already known. Read more
Return an iterator over the known addresses.
Clears the store of all addresses.
Returns the number of addresses.
Flush data to permanent storage.
Returns true if there are no addresses.
Seed the peer store with addresses. Fails if none of the seeds could be resolved to addresses. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.