Struct cyfs_bdt::chunk::ChunkDownloader
source · [−]pub struct ChunkDownloader(_);Implementations
sourceimpl ChunkDownloader
impl ChunkDownloader
pub fn new(view: ChunkView, stack: Weak<StackImpl>) -> Self
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn finished(
stack: Weak<StackImpl>,
view: &ChunkView,
content: Arc<Box<dyn ChunkReader>>
) -> Self
pub fn add_config(
&self,
config: Arc<ChunkDownloadConfig>,
_owner: ResourceManager
) -> BuckyResult<()>
pub fn chunk(&self) -> &ChunkId
pub async fn wait_finish(&self) -> TaskState
pub fn reader(&self) -> Option<Arc<Box<dyn ChunkReader>>>
pub fn schedule_state(&self) -> TaskState
Trait Implementations
sourceimpl Clone for ChunkDownloader
impl Clone for ChunkDownloader
sourcefn clone(&self) -> ChunkDownloader
fn clone(&self) -> ChunkDownloader
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
Auto Trait Implementations
impl !RefUnwindSafe for ChunkDownloader
impl Send for ChunkDownloader
impl Sync for ChunkDownloader
impl Unpin for ChunkDownloader
impl !UnwindSafe for ChunkDownloader
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