pub struct FaiProtocol { /* private fields */ }Expand description
Main library interface for FAI Protocol
Implementations§
Source§impl FaiProtocol
impl FaiProtocol
Sourcepub fn get_status(&self) -> Result<Vec<(String, String, u64)>>
pub fn get_status(&self) -> Result<Vec<(String, String, u64)>>
Get repository status (staged files)
Sourcepub fn storage(&self) -> &StorageManager
pub fn storage(&self) -> &StorageManager
Get reference to the storage manager
Sourcepub fn database(&self) -> &DatabaseManager
pub fn database(&self) -> &DatabaseManager
Get reference to the database manager
Sourcepub fn get_log(&self) -> Result<Vec<CommitInfo>>
pub fn get_log(&self) -> Result<Vec<CommitInfo>>
Get commit log
Auto Trait Implementations§
impl !Freeze for FaiProtocol
impl !RefUnwindSafe for FaiProtocol
impl !Sync for FaiProtocol
impl !UnwindSafe for FaiProtocol
impl Send for FaiProtocol
impl Unpin for FaiProtocol
impl UnsafeUnpin for FaiProtocol
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more