#[non_exhaustive]pub enum PastePhase {
SingleCall = -1,
StartPaste = 1,
ContinuePasting = 2,
EndPaste = 3,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SingleCall = -1
Paste in a single call (i.e. without streaming).
StartPaste = 1
Starts the paste. If calling paste
sequentially only
the first call should have this value as phase
.
ContinuePasting = 2
Continues the paste.
EndPaste = 3
Ends the paste. If calling paste
sequentially only
the last call should have this value as phase
.
Trait Implementations§
Source§impl Clone for PastePhase
impl Clone for PastePhase
Source§fn clone(&self) -> PastePhase
fn clone(&self) -> PastePhase
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 PastePhase
impl Debug for PastePhase
Source§impl Hash for PastePhase
impl Hash for PastePhase
Source§impl PartialEq for PastePhase
impl PartialEq for PastePhase
impl Copy for PastePhase
impl Eq for PastePhase
impl StructuralPartialEq for PastePhase
Auto Trait Implementations§
impl Freeze for PastePhase
impl RefUnwindSafe for PastePhase
impl Send for PastePhase
impl Sync for PastePhase
impl Unpin for PastePhase
impl UnwindSafe for PastePhase
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