pub struct DeviceSyncStatus {
pub ood_device_id: DeviceId,
pub enable_sync: bool,
pub last_success_ping_time: u64,
pub last_ping_result: BuckyErrorCode,
pub last_ping_time: u64,
pub retry_count: u32,
pub device_root_state: ObjectId,
pub device_root_state_revision: u64,
pub zone_root_state: Option<ObjectId>,
pub zone_root_state_revision: u64,
}Fields§
§ood_device_id: DeviceId§enable_sync: bool§last_success_ping_time: u64§last_ping_result: BuckyErrorCode§last_ping_time: u64§retry_count: u32§device_root_state: ObjectId§device_root_state_revision: u64§zone_root_state: Option<ObjectId>§zone_root_state_revision: u64Trait Implementations§
Source§impl Debug for DeviceSyncStatus
impl Debug for DeviceSyncStatus
Source§impl JsonCodec<DeviceSyncStatus> for DeviceSyncStatus
impl JsonCodec<DeviceSyncStatus> for DeviceSyncStatus
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
Auto Trait Implementations§
impl Freeze for DeviceSyncStatus
impl RefUnwindSafe for DeviceSyncStatus
impl Send for DeviceSyncStatus
impl Sync for DeviceSyncStatus
impl Unpin for DeviceSyncStatus
impl UnwindSafe for DeviceSyncStatus
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more