Struct cyfs_lib::RouterEventManager
source · pub struct RouterEventManager { /* private fields */ }
Implementations§
source§impl RouterEventManager
impl RouterEventManager
pub fn new(dec_id: Option<SharedObjectStackDecID>, ws_url: Url) -> Self
pub fn clone_processor(&self) -> RouterEventManagerProcessorRef
pub fn add_event<REQ, RESP>(
&self,
id: &str,
index: i32,
routine: Box<dyn EventListenerAsyncRoutine<RouterEventRequest<REQ>, RouterEventResponse<RESP>>>
) -> BuckyResult<()>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
RouterEventRequest<REQ>: RouterEventCategoryInfo,
pub async fn remove_event(
&self,
category: RouterEventCategory,
id: &str
) -> BuckyResult<bool>
pub async fn stop(&self)
Trait Implementations§
source§impl Clone for RouterEventManager
impl Clone for RouterEventManager
source§fn clone(&self) -> RouterEventManager
fn clone(&self) -> RouterEventManager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more