pub struct FakeGrpc { /* private fields */ }Implementations§
Source§impl FakeGrpc
impl FakeGrpc
pub fn new() -> Self
pub fn stub(self, method: impl Into<String>, body: impl Into<Bytes>) -> Self
pub fn stub_json(self, method: impl Into<String>, value: Value) -> Self
pub fn calls(&self) -> Vec<GrpcCall>
pub fn clear(&self)
pub fn assert_called(&self)
pub fn assert_called_method(&self, method: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeGrpc
impl RefUnwindSafe for FakeGrpc
impl Send for FakeGrpc
impl Sync for FakeGrpc
impl Unpin for FakeGrpc
impl UnsafeUnpin for FakeGrpc
impl UnwindSafe for FakeGrpc
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