Struct cyfs_lib::RouterHandlerManager
source · pub struct RouterHandlerManager { /* private fields */ }
Implementations§
source§impl RouterHandlerManager
impl RouterHandlerManager
pub fn new(dec_id: Option<SharedObjectStackDecID>, ws_url: Url) -> Self
pub fn clone_processor(&self) -> RouterHandlerManagerProcessorRef
pub fn add_handler<REQ, RESP>( &self, chain: RouterHandlerChain, id: &str, index: i32, filter: Option<String>, req_path: Option<String>, default_action: RouterHandlerAction, routine: Option<Box<dyn EventListenerAsyncRoutine<RouterHandlerRequest<REQ, RESP>, RouterHandlerResponse<REQ, RESP>>>> ) -> BuckyResult<()>where REQ: Send + Sync + 'static + JsonCodec<REQ> + Display, RESP: Send + Sync + 'static + JsonCodec<RESP> + Display, RouterHandlerRequest<REQ, RESP>: RouterHandlerCategoryInfo,
pub async fn remove_handler( &self, chain: RouterHandlerChain, category: RouterHandlerCategory, id: &str ) -> BuckyResult<bool>
pub async fn stop(&self)
Trait Implementations§
source§impl Clone for RouterHandlerManager
impl Clone for RouterHandlerManager
source§fn clone(&self) -> RouterHandlerManager
fn clone(&self) -> RouterHandlerManager
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