Struct opendal::layers::ConcurrentLimitLayer
source · [−]pub struct ConcurrentLimitLayer { /* private fields */ }
Expand description
ConcurrentLimitLayer will add concurrent limit for OpenDAL.
Examples
use anyhow::Result;
use opendal::layers::ConcurrentLimitLayer;
use opendal::Operator;
use opendal::Scheme;
let _ = Operator::from_env(Scheme::Fs)
.expect("must init")
.layer(ConcurrentLimitLayer::new(1024));
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConcurrentLimitLayer
impl Send for ConcurrentLimitLayer
impl Sync for ConcurrentLimitLayer
impl Unpin for ConcurrentLimitLayer
impl UnwindSafe for ConcurrentLimitLayer
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