pub struct SyncSession {
pub session_id: String,
pub source_device: DeviceId,
pub target_device: DeviceId,
pub started_at: Timestamp,
pub completed_at: Option<Timestamp>,
pub items_synced: usize,
pub bytes_transferred: usize,
}Expand description
Synchronization session
Fields§
§session_id: StringSession ID
source_device: DeviceIdSource device
target_device: DeviceIdTarget device
started_at: TimestampStart timestamp
completed_at: Option<Timestamp>End timestamp (if completed)
items_synced: usizeNumber of items synced
bytes_transferred: usizeBytes transferred
Implementations§
Source§impl SyncSession
impl SyncSession
Trait Implementations§
Source§impl Clone for SyncSession
impl Clone for SyncSession
Source§fn clone(&self) -> SyncSession
fn clone(&self) -> SyncSession
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 SyncSession
impl Debug for SyncSession
Source§impl<'de> Deserialize<'de> for SyncSession
impl<'de> Deserialize<'de> for SyncSession
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
Auto Trait Implementations§
impl Freeze for SyncSession
impl RefUnwindSafe for SyncSession
impl Send for SyncSession
impl Sync for SyncSession
impl Unpin for SyncSession
impl UnsafeUnpin for SyncSession
impl UnwindSafe for SyncSession
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