pub struct RpcServerHandler { /* private fields */ }Implementations§
Source§impl RpcServerHandler
impl RpcServerHandler
pub fn new(cache: HashMap<String, Box<dyn RpcService>>) -> Self
pub async fn call( &self, link: Arc<Vec<Arc<Box<dyn FusenFilter>>>>, context: FusenContext, ) -> Result<FusenContext, FusenError>
Trait Implementations§
Source§impl Clone for RpcServerHandler
impl Clone for RpcServerHandler
Source§fn clone(&self) -> RpcServerHandler
fn clone(&self) -> RpcServerHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RpcServerHandler
impl Default for RpcServerHandler
Source§fn default() -> RpcServerHandler
fn default() -> RpcServerHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RpcServerHandler
impl !UnwindSafe for RpcServerHandler
impl Freeze for RpcServerHandler
impl Send for RpcServerHandler
impl Sync for RpcServerHandler
impl Unpin for RpcServerHandler
impl UnsafeUnpin for RpcServerHandler
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