pub struct Service {
pub methods: HashMap<String, Box<dyn MethodHandler + Send + Sync>>,
pub streams: HashMap<String, Arc<dyn StreamHandler + Send + Sync>>,
}Available on crate feature
async only.Fields§
§methods: HashMap<String, Box<dyn MethodHandler + Send + Sync>>§streams: HashMap<String, Arc<dyn StreamHandler + Send + Sync>>Auto Trait Implementations§
impl Freeze for Service
impl !RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl !UnwindSafe for Service
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