[][src]Struct git_event::GitRepoWatchHandler

pub struct GitRepoWatchHandler {
    pub url: GitUrl,
    pub credentials: Option<GitCredentials>,
    pub branch_filter: Option<Vec<String>>,
    pub use_shallow: bool,
}

Fields

url: GitUrlcredentials: Option<GitCredentials>branch_filter: Option<Vec<String>>use_shallow: bool

Implementations

impl GitRepoWatchHandler[src]

pub fn new<U: AsRef<str>>(url: U) -> Result<Self>[src]

pub fn with_credentials(self, creds: GitCredentials) -> Self[src]

pub fn with_branch_filter(self, branch_list: Vec<String>) -> Self[src]

pub fn with_shallow_clone(self, shallow_choice: bool) -> Self[src]

pub async fn oneshot_report(self) -> Result<GitRepoState>[src]

pub fn watch_new_commits<F>(&mut self, closure: F) -> Result<()> where
    F: FnOnce() + Copy
[src]

Trait Implementations

impl Clone for GitRepoWatchHandler[src]

impl Debug for GitRepoWatchHandler[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,