[][src]Struct flv_client::KfClient

pub struct KfClient<A>(_);

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]

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]

pub async fn list_offsets<'_, '_, '_>(
    &'_ mut self,
    topic_name: &'_ str,
    leader: &'_ LeaderParam
) -> Result<KfListOffsetResponse, KfSocketError>
[src]

pub async fn offsets_fetch<'_, '_, '_, '_>(
    &'_ mut self,
    group_id: &'_ str,
    topic_name: &'_ str,
    tp_param: &'_ TopicPartitionParam
) -> Result<KfOffsetFetchResponse, KfSocketError>
[src]

pub async fn group_coordinator<'_, '_>(
    &'_ mut self,
    group_id: &'_ str
) -> Result<KfFindCoordinatorResponse, KfSocketError>
[src]

pub async fn send_heartbeat<'_, '_, '_>(
    &'_ mut self,
    group_id: &'_ str,
    member_id: &'_ str,
    generation_id: i32
) -> Result<KfHeartbeatResponse, KfSocketError>
[src]

pub async fn join_group<'_, '_, '_, '_>(
    &'_ mut self,
    topic_name: &'_ str,
    group_id: &'_ str,
    member_id: &'_ str
) -> Result<KfJoinGroupResponse, KfSocketError>
[src]

pub async fn leave_group<'_, '_, '_>(
    &'_ mut self,
    group_id: &'_ str,
    member_id: &'_ str
) -> Result<KfLeaveGroupResponse, KfSocketError>
[src]

pub async fn kf_fetch_logs<'_, '_>(
    &'_ mut self,
    fetch_log_param: &'_ FetchLogsParam
) -> Result<DefaultKfFetchResponse, KfSocketError>
[src]

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]

Trait Implementations

impl<A> SpuController for KfClient<A> where
    A: ToSocketAddrs + Display + Send + Sync
[src]

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]

Find address of the Broker leader for a topic/partition

Auto Trait Implementations

impl<A> !RefUnwindSafe for KfClient<A>

impl<A> Send for KfClient<A> where
    A: Send

impl<A> Sync for KfClient<A> where
    A: Sync

impl<A> Unpin for KfClient<A> where
    A: Unpin

impl<A> !UnwindSafe for KfClient<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,