pub struct EchoHandler;Implementations§
Trait Implementations§
Source§impl Handler for Echo
impl Handler for Echo
Source§fn get_routes(&self) -> HashMap<String, Route>
fn get_routes(&self) -> HashMap<String, Route>
Returns an (ideally static) mapping of selector:route
Source§fn on_message<'life0, 'async_trait>(
&'life0 mut self,
selector: String,
path: String,
client: Client,
peer: Peer,
route: Route,
id: Uuid,
captured_segments: Vec<(String, String)>,
data: Option<Value>,
stream: Option<Channel>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_message<'life0, 'async_trait>(
&'life0 mut self,
selector: String,
path: String,
client: Client,
peer: Peer,
route: Route,
id: Uuid,
captured_segments: Vec<(String, String)>,
data: Option<Value>,
stream: Option<Channel>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handler for messages to this Handler
Auto Trait Implementations§
impl Freeze for Echo
impl RefUnwindSafe for Echo
impl Send for Echo
impl Sync for Echo
impl Unpin for Echo
impl UnwindSafe for Echo
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