Skip to main content

TransportFactory

Trait TransportFactory 

Source
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§

Source

fn create_transport(&self, url: &str) -> Result<Box<dyn SmartSubtransport>>

Create a new transport for the given URL

Source

fn supports_url(&self, url: &str) -> bool

Check if this factory supports the given URL

Implementors§