pub struct Config { /* private fields */ }Expand description
Request configuration objects
Request config objects are used to pass a set of options to the kernel at the time of the line request. The mutators don’t return error values. If the values are invalid, in general they are silently adjusted to acceptable ranges.
Implementations§
Source§impl Config
impl Config
Sourcepub fn set_consumer(&mut self, consumer: &str) -> Result<&mut Self>
pub fn set_consumer(&mut self, consumer: &str) -> Result<&mut Self>
Set the consumer name for the request.
If the consumer string is too long, it will be truncated to the max accepted length.
Sourcepub fn set_event_buffer_size(&mut self, size: usize) -> &mut Self
pub fn set_event_buffer_size(&mut self, size: usize) -> &mut Self
Set the size of the kernel event buffer for the request.
Sourcepub fn event_buffer_size(&self) -> usize
pub fn event_buffer_size(&self) -> usize
Get the edge event buffer size setting for the request config.
Trait Implementations§
impl Eq for Config
impl Send for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl !Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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