pub struct EchoBinaryService { /* private fields */ }Expand description
Echo binary frames back to the active room or the current session.
Useful for proving Hot Lane routing and session scoping.
Implementations§
Source§impl EchoBinaryService
impl EchoBinaryService
pub fn new(svc_id: u8) -> EchoBinaryService
Trait Implementations§
Source§impl BinaryService for EchoBinaryService
impl BinaryService for EchoBinaryService
fn svc_id(&self) -> u8
fn handle_binary<'life0, 'async_trait>(
&'life0 self,
ctx: RealtimeCtx,
frame: HotFrame,
) -> Pin<Box<dyn Future<Output = Result<(), WsPrismError>> + Send + 'async_trait>>where
'life0: 'async_trait,
EchoBinaryService: 'async_trait,
Auto Trait Implementations§
impl Freeze for EchoBinaryService
impl RefUnwindSafe for EchoBinaryService
impl Send for EchoBinaryService
impl Sync for EchoBinaryService
impl Unpin for EchoBinaryService
impl UnwindSafe for EchoBinaryService
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