[−][src]Struct rustbee::device::DigiMeshDevice
Fields
addr_64bit: Option<u64>
node_id: Option<String>
firmware_version: Option<u16>
hardware_version: Option<u16>
nodes: Option<Vec<RemoteDigiMeshDevice>>
Implementations
impl DigiMeshDevice
[src]
pub fn new<'a>(port: &'a str, baud: u32) -> Result<Self>
[src]
pub fn get_firmware_version(&mut self) -> Result<u16>
[src]
pub fn get_hardware_version(&mut self) -> Result<u16>
[src]
pub fn get_node_id(&mut self) -> Result<String>
[src]
pub fn get_64bit_addr(&mut self) -> Result<u64>
[src]
pub fn send<'a>(&mut self, data: &'a [u8]) -> Result<usize>
[src]
pub fn discover_nodes(&mut self, timeout: Option<Duration>) -> Result<()>
[src]
pub fn send_frame<T: TransmitApiFrame>(
&mut self,
frame: T
) -> Result<Box<dyn RecieveApiFrame>>
[src]
&mut self,
frame: T
) -> Result<Box<dyn RecieveApiFrame>>
pub fn atcmd<'a>(&mut self, atcmd: &'a AtCommand) -> Result<()>
[src]
send an AT command and returns the result
pub fn command_mode(&mut self, mode: bool) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DigiMeshDevice
impl Send for DigiMeshDevice
impl !Sync for DigiMeshDevice
impl Unpin for DigiMeshDevice
impl !UnwindSafe for DigiMeshDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,