pub struct SearchChan { /* private fields */ }
Implementations§
Source§impl SearchChan
impl SearchChan
pub fn new(host: &str, port: usize, password: &str) -> Result<Self, Error>
pub fn connect(&mut self) -> Result<String, Error>
pub fn read(&mut self) -> JoinHandle<()>
pub fn write( &mut self, msg: String, ) -> Result<(SyncSender<String>, Receiver<String>), Error>
pub fn query( &mut self, collection: &str, bucket: &str, terms: &str, limit: Option<i32>, offset: Option<&str>, ) -> Result<Vec<String>, Error>
pub fn suggest( &mut self, collection: &str, bucket: &str, word: &str, limit: Option<i32>, ) -> Result<Vec<String>, Error>
pub fn ping(&mut self) -> Result<Receiver<String>, Error>
pub fn quit(&mut self) -> Result<Receiver<String>, Error>
pub fn help(&mut self, manual: Option<&str>) -> Result<Receiver<String>, Error>
Auto Trait Implementations§
impl !Freeze for SearchChan
impl RefUnwindSafe for SearchChan
impl Send for SearchChan
impl Sync for SearchChan
impl Unpin for SearchChan
impl UnwindSafe for SearchChan
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