pub struct JS8Client { /* private fields */ }
Implementations§
Source§impl JS8Client
impl JS8Client
pub fn new(js8_host: &str) -> Self
pub fn refresh_station_data(&mut self) -> Result<(), Box<dyn Error>>
pub fn get_callsign(&self) -> String
pub fn get_grid(&self) -> String
pub fn set_grid(&mut self, grid: &str) -> Result<usize, Box<dyn Error>>
pub fn get_freq(&self) -> (u64, u64)
pub fn set_freq(&mut self, freq: &str) -> Result<usize, Box<dyn Error>>
pub fn get_selected_station(&self) -> Option<String>
pub fn is_connected(&self) -> bool
pub fn is_tx(&self) -> TxStatus
pub fn set_use_message_queue(&mut self, use_message_queue: bool)
pub fn connect(&mut self, host: &str) -> Result<(), Error>
pub fn disconnect(&mut self) -> Result<(), Error>
pub fn recv(&mut self) -> Result<(), Error>
pub fn send( &mut self, message_type: JS8MessageType, value: Option<&str>, ) -> Result<usize, Box<dyn Error>>
pub fn get_next_message(&mut self) -> Option<JS8Message>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JS8Client
impl RefUnwindSafe for JS8Client
impl Send for JS8Client
impl Sync for JS8Client
impl Unpin for JS8Client
impl UnwindSafe for JS8Client
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