Struct libp2p::rendezvous::Namespace
source · pub struct Namespace(_);
Implementations§
source§impl Namespace
impl Namespace
sourcepub fn from_static(value: &'static str) -> Namespace
pub fn from_static(value: &'static str) -> Namespace
Creates a new Namespace
from a static string.
This will panic if the namespace is too long. We accepting panicking in this case because we are enforcing a `static lifetime which means this value can only be a constant in the program and hence we hope the developer checked that it is of an acceptable length.