pub struct SubscriberServer<Type, Event, Config, Sub> { /* private fields */ }
Implementations§
Source§impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>where
Config: SubscriberConfig,
impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>where
Config: SubscriberConfig,
Source§impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
pub fn run<Error, Callback>(
self,
recv_event: Receiver<Event>,
recv_subscribe: Receiver<(Type, Callback)>,
)where
Error: SubscriberError,
Sub: Subscriber<Event, Error>,
Callback: SubscriberCallback<Event> + 'static,
Source§impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
pub fn send<Error>(&mut self, event: Event)where
Error: SubscriberError,
Sub: Subscriber<Event, Error>,
Source§impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> SubscriberServer<Type, Event, Config, Sub>
pub fn subscribe<Callback, Error>(
&mut self,
event_type: Type,
callback: Callback,
) -> Result<(), Error>where
Error: SubscriberError,
Sub: Subscriber<Event, Error>,
Callback: SubscriberCallback<Event> + 'static,
Trait Implementations§
Source§impl<Type, Event, Config, Sub> Default for SubscriberServer<Type, Event, Config, Sub>where
Config: SubscriberConfig,
impl<Type, Event, Config, Sub> Default for SubscriberServer<Type, Event, Config, Sub>where
Config: SubscriberConfig,
Auto Trait Implementations§
impl<Type, Event, Config, Sub> Freeze for SubscriberServer<Type, Event, Config, Sub>where
Config: Freeze,
impl<Type, Event, Config, Sub> RefUnwindSafe for SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> Send for SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> Sync for SubscriberServer<Type, Event, Config, Sub>
impl<Type, Event, Config, Sub> Unpin for SubscriberServer<Type, Event, Config, Sub>where
Config: Unpin,
impl<Type, Event, Config, Sub> UnwindSafe for SubscriberServer<Type, Event, Config, Sub>
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