pub enum PieceControlCommand {
Continue,
Finish,
Pause,
Cancel,
}Variants
Continue
Finish
Pause
Cancel
Trait Implementations
sourceimpl Clone for PieceControlCommand
impl Clone for PieceControlCommand
sourcefn clone(&self) -> PieceControlCommand
fn clone(&self) -> PieceControlCommand
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 Debug for PieceControlCommand
impl Debug for PieceControlCommand
sourceimpl<'de> RawDecode<'de> for PieceControlCommand
impl<'de> RawDecode<'de> for PieceControlCommand
fn raw_decode(buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> Result<(Self, &'de [u8]), BuckyError>
sourceimpl RawEncode for PieceControlCommand
impl RawEncode for PieceControlCommand
fn raw_measure(&self, _purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> Result<&'a [u8], BuckyError>
fn raw_encode_to_buffer(&self) -> Result<Vec<u8, Global>, BuckyError>
fn raw_hash_value(&self) -> Result<HashValue, BuckyError>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> Result<Vec<u8, Global>, BuckyError>
impl Copy for PieceControlCommand
impl Eq for PieceControlCommand
impl StructuralEq for PieceControlCommand
impl StructuralPartialEq for PieceControlCommand
Auto Trait Implementations
impl RefUnwindSafe for PieceControlCommand
impl Send for PieceControlCommand
impl Sync for PieceControlCommand
impl Unpin for PieceControlCommand
impl UnwindSafe for PieceControlCommand
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