Showing the changes to git-protocol/src (1 of 3 files). Show all
Unified · Split
| @@ -1,12 +1,24 @@ | |||
| 1 | use crate::credentials; | 1 | use crate::credentials; |
| 2 | use git_transport::client; | 2 | use git_transport::client; |
| 3 | use quick_error::quick_error; | ||
| 4 | |||
| 5 | quick_error! { | ||
| 6 | #[derive(Debug)] | ||
| 7 | pub enum Error { | ||
| 8 | Credentials(err: credentials::Error) { | ||
| 9 | display("Failed to obtain, approve or reject credentials") | ||
| 10 | from() | ||
| 11 | source(err) | ||
| 12 | } | ||
| 13 | } | ||
| 14 | } | ||
| 3 | 15 | ||
| 4 | pub trait Delegate {} | 16 | pub trait Delegate {} |
| 5 | 17 | ||
| 6 | pub fn fetch( | 18 | pub fn fetch( |
| 7 | _transport: impl client::Transport, | 19 | _transport: impl client::Transport, |
| 8 | _delegate: impl Delegate, | 20 | _delegate: impl Delegate, |
| 9 | _authenticate: impl FnMut(credentials::Action, &str) -> credentials::Result, | 21 | _authenticate: impl FnMut(credentials::Action) -> credentials::Result, |
| 10 | ) { | 22 | ) -> Result<(), Error> { |
| 11 | unimplemented!("fetch") | 23 | unimplemented!("fetch") |
| 12 | } | 24 | } |