pub struct ChunkView(_);
Implementations
sourceimpl ChunkView
impl ChunkView
pub fn new(
stack: Weak<StackImpl>,
chunk: ChunkId,
init_state: &ChunkState
) -> Self
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn recyclable(&self, expect_ref: usize) -> bool
pub async fn load(&self) -> BuckyResult<()>
pub fn chunk(&self) -> &ChunkId
pub fn start_download(
&self,
context: SingleDownloadContext
) -> BuckyResult<ChunkDownloader>
pub fn start_upload(
&self,
session_id: TempSeq,
piece_type: ChunkEncodeDesc,
to: Channel
) -> BuckyResult<UploadSession>
pub fn reader(&self) -> Option<Arc<Box<dyn ChunkReader>>>
pub fn on_schedule(&self, now: Timestamp)
Trait Implementations
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 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