pub trait ZoneObj {
Show 14 methods
// Required methods
fn create(
owner: ObjectId,
ood_work_mode: OODWorkMode,
ood_list: Vec<DeviceId>,
known_device_list: Vec<DeviceId>,
) -> Self;
fn owner(&self) -> &ObjectId;
fn ood_work_mode(&self) -> &OODWorkMode;
fn set_ood_work_mode(&mut self, work_mode: OODWorkMode);
fn ood(&self) -> &DeviceId;
fn ood_list(&self) -> &Vec<DeviceId> ⓘ;
fn ood_list_mut(&mut self) -> &mut Vec<DeviceId> ⓘ;
fn ood_index(&self, device_id: &DeviceId) -> BuckyResult<usize>;
fn known_device_list(&self) -> &Vec<DeviceId> ⓘ;
fn known_device_list_mut(&mut self) -> &mut Vec<DeviceId> ⓘ;
fn device_index(&self, device_id: &DeviceId) -> BuckyResult<usize>;
fn zone_id(&self) -> ZoneId;
fn is_ood(&self, device_id: &DeviceId) -> bool;
fn is_known_device(&self, device_id: &DeviceId) -> bool;
}
Required Methods§
fn create( owner: ObjectId, ood_work_mode: OODWorkMode, ood_list: Vec<DeviceId>, known_device_list: Vec<DeviceId>, ) -> Self
fn owner(&self) -> &ObjectId
fn ood_work_mode(&self) -> &OODWorkMode
fn set_ood_work_mode(&mut self, work_mode: OODWorkMode)
fn ood(&self) -> &DeviceId
fn ood_list(&self) -> &Vec<DeviceId> ⓘ
fn ood_list_mut(&mut self) -> &mut Vec<DeviceId> ⓘ
fn ood_index(&self, device_id: &DeviceId) -> BuckyResult<usize>
fn known_device_list(&self) -> &Vec<DeviceId> ⓘ
fn known_device_list_mut(&mut self) -> &mut Vec<DeviceId> ⓘ
fn device_index(&self, device_id: &DeviceId) -> BuckyResult<usize>
fn zone_id(&self) -> ZoneId
fn is_ood(&self, device_id: &DeviceId) -> bool
fn is_known_device(&self, device_id: &DeviceId) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.