pub struct ChunkView(_);Implementations
sourceimpl ChunkView
impl ChunkView
pub fn raptor_decoder(&self) -> RaptorDecoder
pub fn raptor_encoder(&self) -> RaptorEncoder
pub fn on_piece_stat(&self, data: &PieceData) -> BuckyResult<()>
pub fn new(
stack: Weak<StackImpl>,
chunk: ChunkId,
init_state: &ChunkState,
task_cb: Option<Arc<dyn StatisticTask>>
) -> Self
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn recyclable(&self, expect_ref: usize) -> bool
pub fn resource(&self) -> &ResourceManager
pub fn resource_quoto(&self) -> &ResourceQuota
pub fn as_statistic(&self) -> StatisticTaskPtr
pub async fn load(&self) -> BuckyResult<()>
pub fn chunk(&self) -> &ChunkId
pub fn start_download(
&self,
config: Arc<ChunkDownloadConfig>,
owner: ResourceManager
) -> BuckyResult<ChunkDownloader>
pub fn start_upload(
&self,
session_id: TempSeq,
piece_type: PieceSessionType,
to: Channel,
owner: ResourceManager
) -> BuckyResult<UploadSession>
pub fn reader(&self) -> Option<Arc<Box<dyn ChunkReader>>>
Trait Implementations
sourceimpl EventScheduler for ChunkView
impl EventScheduler for ChunkView
fn upload_scheduler_event(&self, requester: &DeviceId) -> BuckyResult<()>
fn download_scheduler_event(&self, requester: &DeviceId) -> BuckyResult<()>
sourceimpl Scheduler for ChunkView
impl Scheduler for ChunkView
fn collect_resource_usage(&self)
fn schedule_resource(&self)
fn apply_scheduled_resource(&self)
sourceimpl StatisticTask for ChunkView
impl StatisticTask for ChunkView
fn reset(&self)
fn stat(&self) -> BuckyResult<Box<dyn PerfDataAbstract>>
fn on_stat(&self, size: u64) -> BuckyResult<Box<dyn PerfDataAbstract>>
Auto Trait Implementations
impl !RefUnwindSafe for ChunkView
impl Send for ChunkView
impl Sync for ChunkView
impl Unpin for ChunkView
impl !UnwindSafe for ChunkView
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