pub struct Providers<'a> {
pub vcs: &'a dyn Vcs,
pub hosting: &'a dyn Hosting,
}Expand description
The repository side and the remote-host side of one run.
Borrowed rather than owned, because a caller that supplies an implementation almost always wants to read its state afterwards — what a test provider recorded is the assertion, and a run that consumed it would leave nothing to assert on.
Fields§
§vcs: &'a dyn VcsEverything done to the repository.
hosting: &'a dyn HostingWhere the host for a repository comes from.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Providers<'a>
impl<'a> !Send for Providers<'a>
impl<'a> !Sync for Providers<'a>
impl<'a> !UnwindSafe for Providers<'a>
impl<'a> Freeze for Providers<'a>
impl<'a> Unpin for Providers<'a>
impl<'a> UnsafeUnpin for Providers<'a>
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