Struct cyfs_bdt::ndn::channel::UploadSession
source · pub struct UploadSession(_);Implementations§
source§impl UploadSession
impl UploadSession
pub fn new( chunk: ChunkId, session_id: TempSeq, piece_type: ChunkCodecDesc, encoder: Box<dyn ChunkEncoder>, channel: Channel ) -> Self
pub fn remote(&self) -> &DeviceId
pub fn chunk(&self) -> &ChunkId
pub fn piece_type(&self) -> &ChunkCodecDesc
pub fn session_id(&self) -> &TempSeq
pub fn on_interest( &self, channel: &Channel, _interest: &Interest ) -> BuckyResult<()>
Trait Implementations§
source§impl Clone for UploadSession
impl Clone for UploadSession
source§fn clone(&self) -> UploadSession
fn clone(&self) -> UploadSession
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more