pub struct RemoteConfig { /* private fields */ }Implementations§
Source§impl RemoteConfig
impl RemoteConfig
pub fn open(repo: &Repository) -> Result<Self>
pub fn list(&self) -> Vec<(String, Remote)>
pub fn get(&self, name: &str) -> Result<Remote>
pub fn add(&mut self, name: &str, remote: Remote) -> Result<()>
pub fn remove(&mut self, name: &str) -> Result<()>
pub fn default_name(&self) -> Option<&str>
Auto Trait Implementations§
impl Freeze for RemoteConfig
impl RefUnwindSafe for RemoteConfig
impl Send for RemoteConfig
impl Sync for RemoteConfig
impl Unpin for RemoteConfig
impl UnsafeUnpin for RemoteConfig
impl UnwindSafe for RemoteConfig
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