pub struct RedPandaClient { /* private fields */ }
Implementations§
Source§impl RedPandaClient
impl RedPandaClient
pub fn new( http_client: &mut Box<dyn RedPandaHttpClient>, inital_url: &str, group: &str, ) -> Result<RedPandaClient, RedPandaError>
pub fn register_topic( &mut self, client: &mut Box<dyn RedPandaHttpClient>, topics: Vec<&str>, ) -> Result<(), RedPandaError>
pub fn poll( &mut self, client: &mut Box<dyn RedPandaHttpClient>, bytecount: i32, ) -> Result<Vec<Record>, RedPandaError>
pub fn commit_state( &mut self, client: &mut Box<dyn RedPandaHttpClient>, state: &CommitState, ) -> Result<(), RedPandaError>
pub fn instance_id(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for RedPandaClient
impl Clone for RedPandaClient
Source§fn clone(&self) -> RedPandaClient
fn clone(&self) -> RedPandaClient
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 moreAuto Trait Implementations§
impl Freeze for RedPandaClient
impl RefUnwindSafe for RedPandaClient
impl Send for RedPandaClient
impl Sync for RedPandaClient
impl Unpin for RedPandaClient
impl UnwindSafe for RedPandaClient
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