Struct ssp_server::Server
source · pub struct Server { /* private fields */ }Expand description
SSP/eSSP server for communicating with supported device over serial.
Optionally, can be used interactively with a client connection.
Implementations§
source§impl Server
impl Server
sourcepub fn new_auto(
serial_path: &str,
stop_polling: Arc<AtomicBool>,
protocol_version: ProtocolVersion
) -> Result<Self>
pub fn new_auto( serial_path: &str, stop_polling: Arc<AtomicBool>, protocol_version: ProtocolVersion ) -> Result<Self>
Creates a new Server that automatically handles device events.
sourcepub fn handle(&self) -> Result<MutexGuard<'_, DeviceHandle>>
pub fn handle(&self) -> Result<MutexGuard<'_, DeviceHandle>>
Gets a reference to the DeviceHandle.
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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