Struct aiofut::AIOBuilder
source · [−]pub struct AIOBuilder { /* private fields */ }
Implementations
sourceimpl AIOBuilder
impl AIOBuilder
sourcepub fn max_events(&mut self, v: u32) -> &mut Self
pub fn max_events(&mut self, v: u32) -> &mut Self
Maximum concurrent async IO operations.
sourcepub fn max_nbatched(&mut self, v: usize) -> &mut Self
pub fn max_nbatched(&mut self, v: usize) -> &mut Self
Maximum number of IOs per submission.
sourcepub fn timeout(&mut self, sec: u32) -> &mut Self
pub fn timeout(&mut self, sec: u32) -> &mut Self
Timeout for a polling iteration (default is None).
sourcepub fn build(&mut self) -> Result<AIOManager, Error>
pub fn build(&mut self) -> Result<AIOManager, Error>
Build an AIOManager object based on the configuration (and auto-start the background IO scheduling thread).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AIOBuilder
impl Send for AIOBuilder
impl Sync for AIOBuilder
impl Unpin for AIOBuilder
impl UnwindSafe for AIOBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more