Trait bip_utracker::option::AnnounceOption [] [src]

pub trait AnnounceOption<'a>: Sized {
    fn option_byte() -> u8;
fn option_length(&self) -> usize;
fn read_option(bytes: &'a [u8]) -> Option<Self>;
fn write_option(&self, buffer: &mut [u8]); }

Trait for supplying optional information in an AnnounceRequest.

Required Methods

Byte specifying what option this is.

Length of the associated option data.

Reads the option content from the given bytes.

Writes the option payload into the given buffer.

Implementors