pub struct ScopedServer { /* private fields */ }Expand description
A scoped view of a SlopServer that prefixes all paths.
Implementations§
Source§impl ScopedServer
impl ScopedServer
pub fn register(&self, path: &str, descriptor: Value)
pub fn register_fn<F>(&self, path: &str, f: F)
pub fn action<F>(&self, path: &str, name: impl Into<String>, handler: F)
pub fn unregister(&self, path: &str)
pub fn scope(&self, sub_prefix: &str) -> ScopedServer
pub fn refresh(&self)
Auto Trait Implementations§
impl Freeze for ScopedServer
impl RefUnwindSafe for ScopedServer
impl Send for ScopedServer
impl Sync for ScopedServer
impl Unpin for ScopedServer
impl UnsafeUnpin for ScopedServer
impl UnwindSafe for ScopedServer
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