pub struct SflowParserBuilder { /* private fields */ }Expand description
Builder for configuring an SflowParser.
Implementations§
Source§impl SflowParserBuilder
impl SflowParserBuilder
Sourcepub fn with_max_samples(self, max: u32) -> Self
pub fn with_max_samples(self, max: u32) -> Self
Set the maximum number of samples allowed per datagram.
Datagrams exceeding this limit will return a
SflowError::TooManySamples error before parsing any samples.
Sourcepub fn build(self) -> SflowParser
pub fn build(self) -> SflowParser
Build the configured SflowParser.
Trait Implementations§
Source§impl Clone for SflowParserBuilder
impl Clone for SflowParserBuilder
Source§fn clone(&self) -> SflowParserBuilder
fn clone(&self) -> SflowParserBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SflowParserBuilder
impl RefUnwindSafe for SflowParserBuilder
impl Send for SflowParserBuilder
impl Sync for SflowParserBuilder
impl Unpin for SflowParserBuilder
impl UnsafeUnpin for SflowParserBuilder
impl UnwindSafe for SflowParserBuilder
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