Type Alias Device

Source
pub type Device = NamedObjectBase<DeviceType>;

Aliased Type§

pub struct Device { /* private fields */ }

Implementations§

Source§

impl Device

Source

pub fn new( owner: Option<ObjectId>, unique_id: UniqueId, endpoints: Vec<Endpoint>, sn_list: Vec<DeviceId>, passive_pn_list: Vec<DeviceId>, public_key: PublicKey, area: Area, category: DeviceCategory, ) -> DeviceBuilder

Source

pub fn connect_info(&self) -> &DeviceBodyContent

Source

pub fn mut_connect_info(&mut self) -> &mut DeviceBodyContent

Source

pub fn name(&self) -> Option<&str>

Source

pub fn set_name(&mut self, name: Option<String>)

Source

pub fn bdt_version(&self) -> Option<u8>

Source

pub fn set_bdt_version(&mut self, bdt_version: Option<u8>)

Source

pub fn category(&self) -> BuckyResult<DeviceCategory>

Source

pub fn has_wan_endpoint(&self) -> bool

Trait Implementations§

Source§

impl RawMergable for Device

Source§

fn raw_merge_ok(&self, other: &Self) -> bool