Struct cyfs_bdt::chunk::RangeEncoder
source · [−]pub struct RangeEncoder(_);Implementations
sourceimpl RangeEncoder
impl RangeEncoder
pub fn from_reader(reader: Arc<Box<dyn ChunkReader>>, chunk: &ChunkId) -> Self
pub fn end_index(&self) -> u32
pub fn range_size(&self) -> u16
Trait Implementations
sourceimpl ChunkEncoder for RangeEncoder
impl ChunkEncoder for RangeEncoder
fn chunk(&self) -> &ChunkId
fn state(&self) -> ChunkEncoderState
fn wait_ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ChunkEncoderState> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn piece_of(&self, index: u32, buf: &mut [u8]) -> BuckyResult<usize>
sourceimpl Clone for RangeEncoder
impl Clone for RangeEncoder
sourcefn clone(&self) -> RangeEncoder
fn clone(&self) -> RangeEncoder
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 RangeEncoder
impl Send for RangeEncoder
impl Sync for RangeEncoder
impl Unpin for RangeEncoder
impl UnwindSafe for RangeEncoder
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