pub struct MemSink(pub HashMap<Hash, Vec<u8>>);Expand description
In-memory sink for tests.
Tuple Fields§
§0: HashMap<Hash, Vec<u8>>Trait Implementations§
Source§impl ObjectSink for MemSink
impl ObjectSink for MemSink
fn write_object(&mut self, bytes: &[u8]) -> Result<Hash, BridgeError>
Auto Trait Implementations§
impl Freeze for MemSink
impl RefUnwindSafe for MemSink
impl Send for MemSink
impl Sync for MemSink
impl Unpin for MemSink
impl UnsafeUnpin for MemSink
impl UnwindSafe for MemSink
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