pub struct Endpoint {
pub uid: u64,
/* private fields */
}
Expand description
Information about a connected node
Fields§
§uid: u64
Implementations§
Source§impl Endpoint
impl Endpoint
pub fn new(type_: NodeType, uid: u64) -> Endpoint
pub fn set_daemonnode_params(&mut self)
pub fn set_evdev_params(&mut self, info: EvdevInfo)
pub fn set_hidio_params(&mut self, name: String, serial: String)
pub fn set_hidapi_params(&mut self, info: HidApiInfo)
pub fn set_uhid_params(&mut self, info: UhidInfo)
pub fn set_hidapi_path(&mut self, path: String)
pub fn type_(&mut self) -> NodeType
pub fn name(&mut self) -> String
Sourcepub fn key(&mut self) -> String
pub fn key(&mut self) -> String
Used to generate a unique key that will point to this device Empty fields are still used (in the case of bluetooth and the interface field on Windows sometimes) Does not include path, as the path may not uniquely identify device port or device Does not include release number as this may be incrementing
pub fn serial(&mut self) -> String
pub fn uid(&mut self) -> u64
pub fn created(&mut self) -> Instant
pub fn path(&mut self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.