Struct bip_utracker::option::AnnounceOptions [] [src]

pub struct AnnounceOptions<'a> { /* fields omitted */ }

Set of announce options used to provide trackers with extra information.

Methods

impl<'a> AnnounceOptions<'a>
[src]

[src]

Create a new set of AnnounceOptions.

[src]

Parse a set of AnnounceOptions from the given bytes.

[src]

Write the AnnounceOptions to the given writer.

[src]

Search for and construct the given AnnounceOption from the current AnnounceOptions.

Returns None if the option is not found or it failed to read from the given bytes.

[src]

Add an AnnounceOption to the current set of AnnounceOptions.

Any existing option with a matching option byte will be replaced.

[src]

Create an owned version of AnnounceOptions.

Trait Implementations

impl<'a> Clone for AnnounceOptions<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for AnnounceOptions<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for AnnounceOptions<'a>
[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<'a> Eq for AnnounceOptions<'a>
[src]