#[non_exhaustive]pub enum RotateReason {
Resize,
Revocation,
}Expand description
Why a service file is being replaced.
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.
Resize
The file changes size. A drain barrier runs first; old-offset writes are never replayed.
Revocation
A client is removed. Same size and shape; old bytes are kept; no drain barrier.
Trait Implementations§
Source§impl Clone for RotateReason
impl Clone for RotateReason
impl Copy for RotateReason
Source§impl Debug for RotateReason
impl Debug for RotateReason
Source§impl<'de> Deserialize<'de> for RotateReason
impl<'de> Deserialize<'de> for RotateReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RotateReason
Source§impl Hash for RotateReason
impl Hash for RotateReason
Source§impl PartialEq for RotateReason
impl PartialEq for RotateReason
Source§impl Serialize for RotateReason
impl Serialize for RotateReason
impl StructuralPartialEq for RotateReason
Auto Trait Implementations§
impl Freeze for RotateReason
impl RefUnwindSafe for RotateReason
impl Send for RotateReason
impl Sync for RotateReason
impl Unpin for RotateReason
impl UnsafeUnpin for RotateReason
impl UnwindSafe for RotateReason
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