pub struct Dot<'a> { /* private fields */ }Implementations§
Source§impl<'a> Dot<'a>
impl<'a> Dot<'a>
pub fn new( addr_ip: IpAddr, port_number: u16, data_point: &[u8], plugin_dir: Option<&'a str>, ) -> Dot<'a>
pub fn drop_plugins(&mut self) -> Result<i32, &'static str>
pub fn get_datapoint(&self) -> Vec<u8> ⓘ
pub fn health(&mut self) -> Result<i32, &'static str>
Sourcepub fn process_command(
&mut self,
message: &[u8],
) -> Result<Box<dyn Any>, &'static str>
pub fn process_command( &mut self, message: &[u8], ) -> Result<Box<dyn Any>, &'static str>
This function maps the end user’s command (.e.g; SELF::ATTR::name) to the plugin that owns to the processing of the command.
pub fn start_listener(&mut self) -> Result<i32, &'static str>
pub fn stop_listener(&mut self) -> Result<i32, &'static str>
pub fn speak(&mut self, message: &[u8]) -> Result<i32, &'static str>
Auto Trait Implementations§
impl<'a> Freeze for Dot<'a>
impl<'a> !RefUnwindSafe for Dot<'a>
impl<'a> Send for Dot<'a>
impl<'a> !Sync for Dot<'a>
impl<'a> Unpin for Dot<'a>
impl<'a> !UnwindSafe for Dot<'a>
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