pub struct MockRealmQuery { /* private fields */ }
Expand description
Provides a mock RealmQuery
interface.
Implementations§
Source§impl MockRealmQuery
impl MockRealmQuery
Sourcepub async fn serve(self: Rc<Self>, object: ServerEnd<RealmQueryMarker>)
pub async fn serve(self: Rc<Self>, object: ServerEnd<RealmQueryMarker>)
Serves the RealmQuery
interface asynchronously and runs until the program terminates.
Sourcepub async fn get_proxy(self: Rc<Self>) -> RealmQueryProxy
pub async fn get_proxy(self: Rc<Self>) -> RealmQueryProxy
Serves the RealmQuery
interface asynchronously and runs until the program terminates.
Then, instead of needing the client to discover the protocol, return the proxy for futher
test use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockRealmQuery
impl RefUnwindSafe for MockRealmQuery
impl Send for MockRealmQuery
impl Sync for MockRealmQuery
impl Unpin for MockRealmQuery
impl UnwindSafe for MockRealmQuery
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