[−][src]Struct flv_client::SpuLeader
Methods
impl SpuLeader
[src]
pub fn addr(&self) -> &ServerAddress
[src]
pub fn client_id(&self) -> &str
[src]
pub fn topic(&self) -> &str
[src]
pub fn partition(&self) -> i32
[src]
pub async fn connect(config: LeaderConfig) -> Result<Self, ClientError>
[src]
pub async fn fetch_local_spu<'_>(
&'_ mut self
) -> Result<FlvFetchLocalSpuResponse, KfSocketError>
[src]
&'_ mut self
) -> Result<FlvFetchLocalSpuResponse, KfSocketError>
fetch local spu
Trait Implementations
impl ReplicaLeader for SpuLeader
[src]
type OffsetPartitionResponse = FetchOffsetPartitionResponse
fn config(&self) -> &LeaderConfig
[src]
fn client(&mut self) -> &mut Client<String>
[src]
fn fetch_offsets<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<FetchOffsetPartitionResponse, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<FetchOffsetPartitionResponse, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn fetch_logs<'a>(
&'a mut self,
offset: i64,
max_bytes: i32,
isolation: Isolation
) -> BoxStream<'a, FetchablePartitionResponse<DefaultRecords>>
[src]
&'a mut self,
offset: i64,
max_bytes: i32,
isolation: Isolation
) -> BoxStream<'a, FetchablePartitionResponse<DefaultRecords>>
stream of partition response
fn topic(&self) -> &str
[src]
fn partition(&self) -> i32
[src]
fn client_id(&self) -> &str
[src]
fn addr(&self) -> &ServerAddress
[src]
fn send_record<'life0, 'async_trait>(
&'life0 mut self,
record: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
record: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for SpuLeader
impl Send for SpuLeader
impl Sync for SpuLeader
impl Unpin for SpuLeader
impl !UnwindSafe for SpuLeader
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>,