Skip to main content

ToBencode

Trait ToBencode 

Source
pub trait ToBencode {
    // Required method
    fn to_bencode(&self) -> Vec<u8> ⓘ;
}

Required Methods§

Source

fn to_bencode(&self) -> Vec<u8> ⓘ

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§