pub enum WalkStream<T: Transport> {
GetNext(Walk<T>),
GetBulk(BulkWalk<T>),
}Expand description
Unified walk stream that auto-selects between GETNEXT and GETBULK.
Created by Client::walk() when using WalkMode::Auto or explicit mode selection.
This type wraps either a Walk or BulkWalk internally based on:
WalkMode::Auto: Uses GETNEXT for V1, GETBULK for V2c/V3WalkMode::GetNext: Always uses GETNEXTWalkMode::GetBulk: Always uses GETBULK (fails on V1)
Variants§
GetNext(Walk<T>)
GETNEXT-based walk (used for V1 or when explicitly requested)
GetBulk(BulkWalk<T>)
GETBULK-based walk (used for V2c/V3 or when explicitly requested)
Implementations§
Trait Implementations§
Source§impl<T: Transport + 'static> Stream for WalkStream<T>
impl<T: Transport + 'static> Stream for WalkStream<T>
Auto Trait Implementations§
impl<T> Freeze for WalkStream<T>
impl<T> !RefUnwindSafe for WalkStream<T>
impl<T> Send for WalkStream<T>
impl<T> !Sync for WalkStream<T>
impl<T> Unpin for WalkStream<T>
impl<T> !UnwindSafe for WalkStream<T>
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