pub struct Registry {
pub net: HashMap<String, FromConfig<Net>>,
pub server: HashMap<String, FromConfig<Server>>,
}
Fields§
§net: HashMap<String, FromConfig<Net>>
§server: HashMap<String, FromConfig<Server>>
Implementations§
Source§impl Registry
impl Registry
pub fn new() -> Registry
pub fn add_net<N: NetFactory>(&mut self)
pub fn add_server<S: ServerFactory>(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl !Send for Registry
impl !Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more