pub struct Builder {
version: ProtocolVersion,
ops: VecDeque<Operation>,
}Available on crate feature
wire and (crate features test) only.Fields§
§version: ProtocolVersion§ops: VecDeque<Operation>Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Builder
pub fn version<V: Into<ProtocolVersion>>(&mut self, version: V) -> &mut Self
pub fn read_number(&mut self, value: u64) -> &mut Self
pub fn read_number_error(&mut self, err: Error) -> &mut Self
pub fn read_bytes(&mut self, value: Bytes) -> &mut Self
pub fn read_slice(&mut self, data: &[u8]) -> &mut Self
pub fn read_bytes_error(&mut self, err: Error) -> &mut Self
pub fn build(&mut self) -> Mock
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more