Docs.rs
bucky-objects-0.1.0
bucky-objects 0.1.0
Permalink
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
BDTDevTeam
Dependencies
async-recursion ^1.1.1
normal
async-std ^1.12.0
normal
async-trait ^0.1.80
normal
base-x ^0.2
normal
base58 ^0.2.0
normal
bucky-crypto ^0.1.0
normal
bucky-error ^0.1.0
normal
bucky-raw-codec ^0.1.0
normal
bucky-time ^0.1.0
normal
generic-array ^0.12
normal
hex ^0.4.3
normal
intbits ^0.2.0
normal
itertools ^0.13.0
normal
log ^0.4.21
normal
lru_time_cache ^0.11.11
normal
once_cell ^1.19.0
normal
primitive-types ^0.12.2
normal
protobuf ^2
normal
rand ^0.8.5
normal
serde ^1.0.202
normal
chrono ^0.4
build
protoc-bin-vendored ^3
build
protoc-rust ^2
build
Versions
2.29%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
bucky_
objects
0.1.0
Device
Aliased Type
Methods
bdt_version
category
connect_info
has_wan_endpoint
mut_connect_info
name
new
set_bdt_version
set_name
Trait Implementations
RawMergable
In crate bucky_
objects
bucky_objects
Type Alias
Device
Copy item path
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