pub struct ReadoutBoard {Show 14 fields
pub rb_id: u8,
pub dsi: u8,
pub j: u8,
pub mtb_link_id: u8,
pub paddle12: Paddle,
pub paddle12_chA: u8,
pub paddle34: Paddle,
pub paddle34_chA: u8,
pub paddle56: Paddle,
pub paddle56_chA: u8,
pub paddle78: Paddle,
pub paddle78_chA: u8,
pub calib_file_path: String,
pub calibration: RBCalibrations,
}
Expand description
A Readoutboard with paddles connected
Fields§
§rb_id: u8
§dsi: u8
§j: u8
§mtb_link_id: u8
§paddle12: Paddle
§paddle12_chA: u8
§paddle34: Paddle
§paddle34_chA: u8
§paddle56: Paddle
§paddle56_chA: u8
§paddle78: Paddle
§paddle78_chA: u8
§calib_file_path: String
§calibration: RBCalibrations
Implementations§
Source§impl ReadoutBoard
impl ReadoutBoard
pub fn new() -> Self
Sourcepub fn guess_address(&self) -> String
pub fn guess_address(&self) -> String
Returns the ip address following a convention
This does NOT GUARANTEE that the address is correct!
pub fn get_paddle_ids(&self) -> [u8; 4]
pub fn get_A_sides(&self) -> [u8; 4]
pub fn get_pid_rbchA(&self, pid: u8) -> Option<u8>
pub fn get_pid_rbchB(&self, pid: u8) -> Option<u8>
pub fn get_paddle_length(&self, pid: u8) -> Option<f32>
pub fn all(conn: &mut SqliteConnection) -> Option<Vec<ReadoutBoard>>
pub fn where_rbid( conn: &mut SqliteConnection, rb_id: u8, ) -> Option<ReadoutBoard>
pub fn to_summary_str(&self) -> String
Trait Implementations§
Source§impl Clone for ReadoutBoard
impl Clone for ReadoutBoard
Source§fn clone(&self) -> ReadoutBoard
fn clone(&self) -> ReadoutBoard
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReadoutBoard
impl Debug for ReadoutBoard
Auto Trait Implementations§
impl Freeze for ReadoutBoard
impl RefUnwindSafe for ReadoutBoard
impl Send for ReadoutBoard
impl Sync for ReadoutBoard
impl Unpin for ReadoutBoard
impl UnwindSafe for ReadoutBoard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more