pub trait TransportFactory {
// Required methods
fn create_transport(&self, url: &str) -> Result<Box<dyn SmartSubtransport>>;
fn supports_url(&self, url: &str) -> bool;
}Expand description
Git2 transport factory trait implementation
Required Methods§
Sourcefn create_transport(&self, url: &str) -> Result<Box<dyn SmartSubtransport>>
fn create_transport(&self, url: &str) -> Result<Box<dyn SmartSubtransport>>
Create a new transport for the given URL
Sourcefn supports_url(&self, url: &str) -> bool
fn supports_url(&self, url: &str) -> bool
Check if this factory supports the given URL