pub struct Loss {
pub service_id: String,
pub file_id: u32,
pub kind: LossKind,
pub ranges: Vec<LossRange>,
}Expand description
Server to a client: writes of its own were lost, and why. ranges are in old-file coordinates;
empty means the whole file. A receiver treats an unknown kind as a loss of the whole file.
Fields§
§service_id: String§file_id: u32§kind: LossKind§ranges: Vec<LossRange>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Loss
impl<'de> Deserialize<'de> for Loss
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 Loss
impl StructuralPartialEq for Loss
Auto Trait Implementations§
impl Freeze for Loss
impl RefUnwindSafe for Loss
impl Send for Loss
impl Sync for Loss
impl Unpin for Loss
impl UnsafeUnpin for Loss
impl UnwindSafe for Loss
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