Struct cyfs_bdt::ChunkListTask
source · [−]pub struct ChunkListTask(_);Implementations
sourceimpl ChunkListTask
impl ChunkListTask
pub fn new(
stack: Weak<StackImpl>,
name: String,
chunk_list: ChunkListDesc,
config: Arc<ChunkDownloadConfig>,
writers: Vec<Box<dyn ChunkWriter>>,
owner: ResourceManager,
task_cb: Option<StatisticTaskPtr>
) -> Self
pub fn with_ranges(
stack: Weak<StackImpl>,
name: String,
chunk_list: ChunkListDesc,
ranges: Option<Vec<Range<u64>>>,
config: Arc<ChunkDownloadConfig>,
writers: Vec<Box<dyn ChunkWriterExt>>,
owner: ResourceManager,
task_cb: Option<StatisticTaskPtr>
) -> Self
pub fn chunk_list(&self) -> &ChunkListDesc
pub fn ranges(&self) -> &Vec<(usize, Option<Range<u64>>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn config(&self) -> &Arc<ChunkDownloadConfig>
Trait Implementations
sourceimpl ChunkWriterExt for ChunkListTask
impl ChunkWriterExt for ChunkListTask
fn clone_as_writer(&self) -> Box<dyn ChunkWriterExt>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn err<'life0, 'async_trait>(
&'life0 self,
err: BuckyErrorCode
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn write<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId,
content: Arc<Vec<u8>>,
range: Option<Range<u64>>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn finish<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl Clone for ChunkListTask
impl Clone for ChunkListTask
sourcefn clone(&self) -> ChunkListTask
fn clone(&self) -> ChunkListTask
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Display for ChunkListTask
impl Display for ChunkListTask
sourceimpl DownloadTask for ChunkListTask
impl DownloadTask for ChunkListTask
sourceimpl DownloadTaskControl for ChunkListTask
impl DownloadTaskControl for ChunkListTask
fn control_state(&self) -> TaskControlState
fn pause(&self) -> BuckyResult<TaskControlState>
fn resume(&self) -> BuckyResult<TaskControlState>
fn cancel(&self) -> BuckyResult<TaskControlState>
sourceimpl StatisticTask for ChunkListTask
impl StatisticTask for ChunkListTask
fn reset(&self)
fn on_stat(&self, size: u64) -> BuckyResult<Box<dyn PerfDataAbstract>>
fn stat(&self) -> BuckyResult<Box<dyn PerfDataAbstract>>
sourceimpl TaskSchedule for ChunkListTask
impl TaskSchedule for ChunkListTask
fn schedule_state(&self) -> TaskState
fn resource(&self) -> &ResourceManager
fn start(&self) -> TaskState
fn statistic_task(&self) -> Option<DynamicStatisticTask>
Auto Trait Implementations
impl !RefUnwindSafe for ChunkListTask
impl Send for ChunkListTask
impl Sync for ChunkListTask
impl Unpin for ChunkListTask
impl !UnwindSafe for ChunkListTask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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