Struct sc_rpc_server::RandomStringIdProvider
pub struct RandomStringIdProvider { /* private fields */ }
Expand description
Generates random strings of length len
as subscription ID.
Implementations§
§impl RandomStringIdProvider
impl RandomStringIdProvider
pub fn new(len: usize) -> RandomStringIdProvider
pub fn new(len: usize) -> RandomStringIdProvider
Create a new random string provider.
Trait Implementations§
§impl Clone for RandomStringIdProvider
impl Clone for RandomStringIdProvider
§fn clone(&self) -> RandomStringIdProvider
fn clone(&self) -> RandomStringIdProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more