Struct cyfs_lib::DeviceZoneInfo
source · pub struct DeviceZoneInfo {
pub device: Option<DeviceId>,
pub zone: Option<ObjectId>,
pub zone_category: DeviceZoneCategory,
}
Fields§
§device: Option<DeviceId>
§zone: Option<ObjectId>
§zone_category: DeviceZoneCategory
Implementations§
source§impl DeviceZoneInfo
impl DeviceZoneInfo
pub fn new_local() -> Self
pub fn new_current_zone() -> Self
pub fn new_friend_zone() -> Self
pub fn new_other_zone() -> Self
pub fn is_current_device(&self) -> bool
pub fn is_current_zone(&self) -> bool
pub fn is_friend_zone(&self) -> bool
Trait Implementations§
source§impl Clone for DeviceZoneInfo
impl Clone for DeviceZoneInfo
source§fn clone(&self) -> DeviceZoneInfo
fn clone(&self) -> DeviceZoneInfo
Returns a copy 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 more