pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn open<'g, T: IntoLink + 'g>( geometry: &'g Geometry, link: T, config: ClientConfig, ) -> impl Future<Output = Result<Self, Error>> + Send + 'g
pub fn open_with_checker<'g, T: IntoLink + 'g>( geometry: &'g Geometry, link: T, config: ClientConfig, ) -> impl Future<Output = Result<(Self, <T::Link as Link>::Checker), Error>> + Send + 'g
pub fn num_devices(&self) -> usize
pub fn datagram_builder<'a>(&self) -> DatagramBuilder<'a>
pub async fn send(&self, frame: Frame<'_>) -> Result<ResponseFuture, Error>
pub async fn send_checked(&self, frame: Frame<'_>) -> Result<(), Error>
pub async fn stop(&self) -> Result<(), Error>
pub async fn read_firmware_version(&self) -> Result<Vec<FirmwareVersion>, Error>
pub async fn read_error_detail(&self) -> Result<Vec<u8>, Error>
pub async fn read_fpga_state(&self) -> Result<Vec<FpgaState>, Error>
pub async fn close(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.