pub struct ServerCoreRef {
pub device_manager: Option<Arc<DeviceManager>>,
pub event_handler: Option<Arc<dyn ServerEventHandler>>,
}Expand description
ServerCore 的轻量级引用
用于在工厂中访问 ServerCore 的组件,避免循环引用
Fields§
§device_manager: Option<Arc<DeviceManager>>§event_handler: Option<Arc<dyn ServerEventHandler>>Auto Trait Implementations§
impl !RefUnwindSafe for ServerCoreRef
impl !UnwindSafe for ServerCoreRef
impl Freeze for ServerCoreRef
impl Send for ServerCoreRef
impl Sync for ServerCoreRef
impl Unpin for ServerCoreRef
impl UnsafeUnpin for ServerCoreRef
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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