pub struct Version { /* private fields */ }
Expand description
Version information about libgit2 and the capabilities it supports.
Implementations
sourceimpl Version
impl Version
sourcepub fn libgit2_version(&self) -> (u32, u32, u32)
pub fn libgit2_version(&self) -> (u32, u32, u32)
Returns the version of libgit2.
The return value is a tuple of (major, minor, rev)
sourcepub fn crate_version(&self) -> &'static str
pub fn crate_version(&self) -> &'static str
Returns the version of the libgit2-sys crate.
sourcepub fn vendored(&self) -> bool
pub fn vendored(&self) -> bool
Returns true if this was built with the vendored version of libgit2.
sourcepub fn threads(&self) -> bool
pub fn threads(&self) -> bool
Returns true if libgit2 was built thread-aware and can be safely used from multiple threads.
sourcepub fn https(&self) -> bool
pub fn https(&self) -> bool
Returns true if libgit2 was built with and linked against a TLS implementation.
Custom TLS streams may still be added by the user to support HTTPS regardless of this.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more