[−][src]Struct flv_client::KfClient
Methods
impl<A> KfClient<A>
[src]
pub fn mut_client(&mut self) -> &mut Client<A>
[src]
impl<A> KfClient<A> where
A: ToSocketAddrs + Display,
[src]
A: ToSocketAddrs + Display,
pub async fn connect(config: ClientConfig<A>) -> Result<Self, ClientError>
[src]
pub async fn query_metadata<'_>(
&'_ mut self,
topics: Option<Vec<String>>
) -> Result<KfMetadataResponse, KfSocketError>
[src]
&'_ mut self,
topics: Option<Vec<String>>
) -> Result<KfMetadataResponse, KfSocketError>
pub async fn list_offsets<'_, '_, '_>(
&'_ mut self,
topic_name: &'_ str,
leader: &'_ LeaderParam
) -> Result<KfListOffsetResponse, KfSocketError>
[src]
&'_ mut self,
topic_name: &'_ str,
leader: &'_ LeaderParam
) -> Result<KfListOffsetResponse, KfSocketError>
pub async fn offsets_fetch<'_, '_, '_, '_>(
&'_ mut self,
group_id: &'_ str,
topic_name: &'_ str,
tp_param: &'_ TopicPartitionParam
) -> Result<KfOffsetFetchResponse, KfSocketError>
[src]
&'_ mut self,
group_id: &'_ str,
topic_name: &'_ str,
tp_param: &'_ TopicPartitionParam
) -> Result<KfOffsetFetchResponse, KfSocketError>
pub async fn group_coordinator<'_, '_>(
&'_ mut self,
group_id: &'_ str
) -> Result<KfFindCoordinatorResponse, KfSocketError>
[src]
&'_ mut self,
group_id: &'_ str
) -> Result<KfFindCoordinatorResponse, KfSocketError>
pub async fn send_heartbeat<'_, '_, '_>(
&'_ mut self,
group_id: &'_ str,
member_id: &'_ str,
generation_id: i32
) -> Result<KfHeartbeatResponse, KfSocketError>
[src]
&'_ mut self,
group_id: &'_ str,
member_id: &'_ str,
generation_id: i32
) -> Result<KfHeartbeatResponse, KfSocketError>
pub async fn join_group<'_, '_, '_, '_>(
&'_ mut self,
topic_name: &'_ str,
group_id: &'_ str,
member_id: &'_ str
) -> Result<KfJoinGroupResponse, KfSocketError>
[src]
&'_ mut self,
topic_name: &'_ str,
group_id: &'_ str,
member_id: &'_ str
) -> Result<KfJoinGroupResponse, KfSocketError>
pub async fn leave_group<'_, '_, '_>(
&'_ mut self,
group_id: &'_ str,
member_id: &'_ str
) -> Result<KfLeaveGroupResponse, KfSocketError>
[src]
&'_ mut self,
group_id: &'_ str,
member_id: &'_ str
) -> Result<KfLeaveGroupResponse, KfSocketError>
pub async fn kf_fetch_logs<'_, '_>(
&'_ mut self,
fetch_log_param: &'_ FetchLogsParam
) -> Result<DefaultKfFetchResponse, KfSocketError>
[src]
&'_ mut self,
fetch_log_param: &'_ FetchLogsParam
) -> Result<DefaultKfFetchResponse, KfSocketError>
Fetch log records from a target server
pub async fn sync_group<'_, '_, '_, '_>(
&'_ mut self,
topic_name: &'_ str,
group_id: &'_ str,
member_id: &'_ str,
generation_id: i32
) -> Result<KfSyncGroupResponse, KfSocketError>
[src]
&'_ mut self,
topic_name: &'_ str,
group_id: &'_ str,
member_id: &'_ str,
generation_id: i32
) -> Result<KfSyncGroupResponse, KfSocketError>
Trait Implementations
impl<A> SpuController for KfClient<A> where
A: ToSocketAddrs + Display + Send + Sync,
[src]
A: ToSocketAddrs + Display + Send + Sync,
type Leader = KfLeader
type TopicMetadata = MetadataResponseTopic
fn find_leader_for_topic_partition<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic: &'life1 str,
partition: i32
) -> Pin<Box<dyn Future<Output = Result<Self::Leader, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: &'life1 str,
partition: i32
) -> Pin<Box<dyn Future<Output = Result<Self::Leader, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Find address of the Broker leader for a topic/partition
fn delete_topic<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_topic<'life0, 'async_trait>(
&'life0 mut self,
topic: String,
replica: ReplicaConfig,
validate_only: bool
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: String,
replica: ReplicaConfig,
validate_only: bool
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn topic_metadata<'life0, 'async_trait>(
&'life0 mut self,
topics: Option<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::TopicMetadata>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topics: Option<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::TopicMetadata>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<A> !RefUnwindSafe for KfClient<A>
impl<A> Send for KfClient<A> where
A: Send,
A: Send,
impl<A> Sync for KfClient<A> where
A: Sync,
A: Sync,
impl<A> Unpin for KfClient<A> where
A: Unpin,
A: Unpin,
impl<A> !UnwindSafe for KfClient<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,