Struct cyfs_lib::DeviceSyncStatus
source · [−]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: DeviceIdenable_sync: boollast_success_ping_time: u64last_ping_result: BuckyErrorCodelast_ping_time: u64retry_count: u32device_root_state: ObjectIddevice_root_state_revision: u64zone_root_state: Option<ObjectId>zone_root_state_revision: u64Trait Implementations
sourceimpl Debug for DeviceSyncStatus
impl Debug for DeviceSyncStatus
sourceimpl 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 RefUnwindSafe for DeviceSyncStatus
impl Send for DeviceSyncStatus
impl Sync for DeviceSyncStatus
impl Unpin for DeviceSyncStatus
impl UnwindSafe for DeviceSyncStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more