Debian Codegraph @

src/noop.rs

raw symbols SCIP
1 use gix_hash::ObjectId;
2
3 use crate::{Error, Negotiator};
4
5 pub(crate) struct Noop;
6
7 impl Negotiator for Noop {
8 fn known_common(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_, '_>) -> Result<(), Error> {
9 Ok(())
10 }
11
12 fn add_tip(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_, '_>) -> Result<(), Error> {
13 Ok(())
14 }
15
16 fn next_have(&mut self, _graph: &mut crate::Graph<'_, '_>) -> Option<Result<ObjectId, Error>> {
17 None
18 }
19
20 fn in_common_with_remote(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_, '_>) -> Result<bool, Error> {
21 Ok(false)
22 }
23 }