Struct cyfs_bdt::channel::UploadSession
source · [−]pub struct UploadSession(_);Implementations
sourceimpl UploadSession
impl UploadSession
pub fn new(
chunk: ChunkId,
session_id: TempSeq,
piece_type: PieceSessionType,
channel: Channel,
quota: ResourceQuota,
owner: ResourceManager
) -> Self
pub fn canceled(
chunk: ChunkId,
session_id: TempSeq,
piece_type: PieceSessionType,
channel: Channel,
err: BuckyErrorCode
) -> Self
pub fn chunk(&self) -> &ChunkId
pub fn piece_type(&self) -> &PieceSessionType
pub fn channel(&self) -> &Channel
pub fn session_id(&self) -> &TempSeq
pub fn start(&self, chunk_encoder: TypedChunkEncoder)
Trait Implementations
sourceimpl Clone for UploadSession
impl Clone for UploadSession
sourcefn clone(&self) -> UploadSession
fn clone(&self) -> UploadSession
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 UploadSession
impl Display for UploadSession
sourceimpl TaskSchedule for UploadSession
impl TaskSchedule for UploadSession
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 UploadSession
impl Send for UploadSession
impl Sync for UploadSession
impl Unpin for UploadSession
impl !UnwindSafe for UploadSession
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