pub struct RotationCommit {
pub rotation_id: String,
pub service_id: String,
pub reason: RotateReason,
pub old_file_id: u32,
pub new_file_id: u32,
pub generation: u64,
pub size: u64,
}Expand description
Server to every SDK on the service: the new file is live. new_file_id differs from
old_file_id and is the handle for the new mapping; fetch it with GetServiceFilePath (local)
or Resync (remote). After a revocation, each remaining SDK writes its unflushed ranges into
the new file; after a resize, old-offset writes are never replayed.
Fields§
§rotation_id: String§service_id: String§reason: RotateReason§old_file_id: u32§new_file_id: u32§generation: u64§size: u64Trait Implementations§
Source§impl Clone for RotationCommit
impl Clone for RotationCommit
Source§impl Debug for RotationCommit
impl Debug for RotationCommit
Source§impl<'de> Deserialize<'de> for RotationCommit
impl<'de> Deserialize<'de> for RotationCommit
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 RotationCommit
Source§impl PartialEq for RotationCommit
impl PartialEq for RotationCommit
Source§impl Serialize for RotationCommit
impl Serialize for RotationCommit
impl StructuralPartialEq for RotationCommit
Auto Trait Implementations§
impl Freeze for RotationCommit
impl RefUnwindSafe for RotationCommit
impl Send for RotationCommit
impl Sync for RotationCommit
impl Unpin for RotationCommit
impl UnsafeUnpin for RotationCommit
impl UnwindSafe for RotationCommit
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