pub struct PeerScannerAdapter { /* private fields */ }Expand description
Adapter so PeerFeederSource can be used directly as a LogScanner.
We implement LogScanner on the mutable reference side: since
PeerFeederSource is Arc-wrapped, we implement on a thin wrapper
struct that holds an Arc and a local cursor.
Implementations§
Source§impl PeerScannerAdapter
impl PeerScannerAdapter
Sourcepub fn new(source: Arc<PeerLogScanner>, start_vlsn: u64) -> Self
pub fn new(source: Arc<PeerLogScanner>, start_vlsn: u64) -> Self
Create a new adapter starting from start_vlsn.
Trait Implementations§
Source§impl LogScanner for PeerScannerAdapter
impl LogScanner for PeerScannerAdapter
Auto Trait Implementations§
impl !RefUnwindSafe for PeerScannerAdapter
impl !UnwindSafe for PeerScannerAdapter
impl Freeze for PeerScannerAdapter
impl Send for PeerScannerAdapter
impl Sync for PeerScannerAdapter
impl Unpin for PeerScannerAdapter
impl UnsafeUnpin for PeerScannerAdapter
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
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