pub struct FakeRealtime { /* private fields */ }Expand description
An in-memory cratefield_core::Realtime for module tests: records every
broadcast per room and reports a fixed member list. It exercises the port a
module holds (broadcast/members from outside a socket); the socket lifecycle
and RoomHandler are the runtime adapter’s job, covered by the native
adapter’s own tests.
Implementations§
Source§impl FakeRealtime
impl FakeRealtime
Trait Implementations§
Source§impl Clone for FakeRealtime
impl Clone for FakeRealtime
Source§impl Default for FakeRealtime
impl Default for FakeRealtime
Source§impl Realtime for FakeRealtime
impl Realtime for FakeRealtime
Source§fn broadcast<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
room_id: &'life1 str,
message: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), RealtimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn broadcast<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
room_id: &'life1 str,
message: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), RealtimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send
message to every socket in room_id.Auto Trait Implementations§
impl Freeze for FakeRealtime
impl RefUnwindSafe for FakeRealtime
impl Send for FakeRealtime
impl Sync for FakeRealtime
impl Unpin for FakeRealtime
impl UnsafeUnpin for FakeRealtime
impl UnwindSafe for FakeRealtime
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