pub enum PieceLengthMode {
V1,
V2,
Hybrid,
}Expand description
Protocol constraints applied to an explicit piece length.
Variants§
V1
v1-only creation permits powers of two from 1 KiB.
V2
v2 creation requires the BEP 52 16 KiB minimum.
Hybrid
Hybrid creation follows the v2 minimum.
Trait Implementations§
Source§impl Clone for PieceLengthMode
impl Clone for PieceLengthMode
Source§fn clone(&self) -> PieceLengthMode
fn clone(&self) -> PieceLengthMode
Returns a duplicate 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 moreSource§impl Debug for PieceLengthMode
impl Debug for PieceLengthMode
Source§impl PartialEq for PieceLengthMode
impl PartialEq for PieceLengthMode
impl Copy for PieceLengthMode
impl Eq for PieceLengthMode
impl StructuralPartialEq for PieceLengthMode
Auto Trait Implementations§
impl Freeze for PieceLengthMode
impl RefUnwindSafe for PieceLengthMode
impl Send for PieceLengthMode
impl Sync for PieceLengthMode
impl Unpin for PieceLengthMode
impl UnwindSafe for PieceLengthMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more