Trait rpc_toolkit::Metadata

source ·
pub trait Metadata: Copy + Default + Send + Sync + 'static {
Show 17 methods // Provided methods fn get<Ty: Primitive>(&self, command: &str, key: &str) -> Option<Ty> { ... } fn get_bool(&self, command: &str, key: &str) -> Option<bool> { ... } fn get_u8(&self, command: &str, key: &str) -> Option<u8> { ... } fn get_u16(&self, command: &str, key: &str) -> Option<u16> { ... } fn get_u32(&self, command: &str, key: &str) -> Option<u32> { ... } fn get_u64(&self, command: &str, key: &str) -> Option<u64> { ... } fn get_usize(&self, command: &str, key: &str) -> Option<usize> { ... } fn get_i8(&self, command: &str, key: &str) -> Option<i8> { ... } fn get_i16(&self, command: &str, key: &str) -> Option<i16> { ... } fn get_i32(&self, command: &str, key: &str) -> Option<i32> { ... } fn get_i64(&self, command: &str, key: &str) -> Option<i64> { ... } fn get_isize(&self, command: &str, key: &str) -> Option<isize> { ... } fn get_f32(&self, command: &str, key: &str) -> Option<f32> { ... } fn get_f64(&self, command: &str, key: &str) -> Option<f64> { ... } fn get_char(&self, command: &str, key: &str) -> Option<char> { ... } fn get_str(&self, command: &str, key: &str) -> Option<&'static str> { ... } fn get_bstr(&self, command: &str, key: &str) -> Option<&'static [u8]> { ... }
}

Provided Methods§

source

fn get<Ty: Primitive>(&self, command: &str, key: &str) -> Option<Ty>

source

fn get_bool(&self, command: &str, key: &str) -> Option<bool>

source

fn get_u8(&self, command: &str, key: &str) -> Option<u8>

source

fn get_u16(&self, command: &str, key: &str) -> Option<u16>

source

fn get_u32(&self, command: &str, key: &str) -> Option<u32>

source

fn get_u64(&self, command: &str, key: &str) -> Option<u64>

source

fn get_usize(&self, command: &str, key: &str) -> Option<usize>

source

fn get_i8(&self, command: &str, key: &str) -> Option<i8>

source

fn get_i16(&self, command: &str, key: &str) -> Option<i16>

source

fn get_i32(&self, command: &str, key: &str) -> Option<i32>

source

fn get_i64(&self, command: &str, key: &str) -> Option<i64>

source

fn get_isize(&self, command: &str, key: &str) -> Option<isize>

source

fn get_f32(&self, command: &str, key: &str) -> Option<f32>

source

fn get_f64(&self, command: &str, key: &str) -> Option<f64>

source

fn get_char(&self, command: &str, key: &str) -> Option<char>

source

fn get_str(&self, command: &str, key: &str) -> Option<&'static str>

source

fn get_bstr(&self, command: &str, key: &str) -> Option<&'static [u8]>

Object Safety§

This trait is not object safe.

Implementors§