Zone

Type Alias Zone 

Source
pub type Zone = NamedObjectBase<NamedObjType<ZoneDescContent, ZoneBodyContent>>;

Aliased Type§

pub struct Zone { /* private fields */ }

Trait Implementations§

Source§

impl ZoneObj for Zone

Source§

fn create( owner: ObjectId, ood_work_mode: OODWorkMode, ood_list: Vec<DeviceId>, known_device_list: Vec<DeviceId>, ) -> Self

Source§

fn owner(&self) -> &ObjectId

Source§

fn ood_work_mode(&self) -> &OODWorkMode

Source§

fn set_ood_work_mode(&mut self, work_mode: OODWorkMode)

Source§

fn ood(&self) -> &DeviceId

Source§

fn ood_list(&self) -> &Vec<DeviceId>

Source§

fn ood_list_mut(&mut self) -> &mut Vec<DeviceId>

Source§

fn ood_index(&self, device_id: &DeviceId) -> BuckyResult<usize>

Source§

fn known_device_list(&self) -> &Vec<DeviceId>

Source§

fn known_device_list_mut(&mut self) -> &mut Vec<DeviceId>

Source§

fn device_index(&self, device_id: &DeviceId) -> BuckyResult<usize>

Source§

fn zone_id(&self) -> ZoneId

Source§

fn is_known_device(&self, device_id: &DeviceId) -> bool

Source§

fn is_ood(&self, device_id: &DeviceId) -> bool