pub struct TestLinkSource { /* private fields */ }Expand description
A LinkSource backed by a fixed list of pre-made links.
Each call to next_link() pops the next attachment. When exhausted,
returns an error (which causes the recoverer to give up).
Implementations§
Source§impl TestLinkSource
impl TestLinkSource
pub fn new( attachments: impl IntoIterator<Item = Attachment<BreakableLink>>, ) -> Self
Trait Implementations§
Source§impl LinkSource for TestLinkSource
impl LinkSource for TestLinkSource
type Link = BreakableLink
async fn next_link(&mut self) -> Result<Attachment<Self::Link>>
Auto Trait Implementations§
impl Freeze for TestLinkSource
impl RefUnwindSafe for TestLinkSource
impl Send for TestLinkSource
impl Sync for TestLinkSource
impl Unpin for TestLinkSource
impl UnsafeUnpin for TestLinkSource
impl UnwindSafe for TestLinkSource
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