pub struct HaystackOpTxRx {
pub resp_tx: Sender<HaystackResponse>,
/* private fields */
}
Fields§
§resp_tx: Sender<HaystackResponse>
Implementations§
Source§impl<'a> HaystackOpTxRx
impl<'a> HaystackOpTxRx
pub fn new( op: FStr<'static>, method: FStr<'static>, body: Option<FStr<'static>>, ) -> (Self, Receiver<HaystackResponse>)
pub fn priv_op(&'a self) -> FStr<'_>
pub fn priv_method(&'a self) -> FStr<'_>
pub fn priv_body(&'a self) -> Option<FStr<'_>>
pub fn about() -> (Self, Receiver<HaystackResponse>)
pub fn ops( filter: Option<FStr<'_>>, limit: Option<usize>, ) -> Result<(Self, Receiver<HaystackResponse>), Error>
pub fn close() -> (Self, Receiver<HaystackResponse>)
pub fn defs( filter: Option<FStr<'_>>, limit: Option<usize>, ) -> Result<(Self, Receiver<HaystackResponse>), Error>
pub fn libs( filter: Option<FStr<'_>>, limit: Option<usize>, ) -> Result<(Self, Receiver<HaystackResponse>), Error>
pub fn filetypes( filter: Option<FStr<'_>>, limit: Option<usize>, ) -> Result<(Self, Receiver<HaystackResponse>), Error>
pub fn read( filter: FStr<'_>, limit: Option<usize>, ) -> Result<(Self, Receiver<HaystackResponse>), Error>
pub fn read_by_ids<'b, I>(ids: I) -> Result<(Self, Receiver<HaystackResponse>)>where
I: IntoIterator<Item = &'b str>,
pub fn watch_sub<'b, I>(
dis: Option<&str>,
id: Option<&str>,
lease: Option<&str>,
ids: Option<I>,
) -> Result<(Self, Receiver<HaystackResponse>), &'a str>where
I: IntoIterator<Item = &'b str>,
pub fn watch_unsub<'b, I>(
watch_id: &str,
ids: Option<I>,
close: bool,
) -> Result<(Self, Receiver<HaystackResponse>), &'a str>where
I: IntoIterator<Item = &'b str>,
pub fn watch_poll<'b>( watch_id: &str, refresh: bool, ) -> Result<(Self, Receiver<HaystackResponse>), &'a str>
pub fn his_read( id: &str, date_range: &str, ) -> Result<(Self, Receiver<HaystackResponse>), &'a str>
pub fn his_read_multi<'b, I>(
ids: I,
date_range: &str,
timezone: Option<&str>,
) -> Result<(Self, Receiver<HaystackResponse>), &'a str>where
I: IntoIterator<Item = &'b str>,
pub fn his_write( his: &str, ) -> Result<(Self, Receiver<HaystackResponse>), &'a str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HaystackOpTxRx
impl !RefUnwindSafe for HaystackOpTxRx
impl Send for HaystackOpTxRx
impl Sync for HaystackOpTxRx
impl Unpin for HaystackOpTxRx
impl !UnwindSafe for HaystackOpTxRx
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