[−][src]Struct nakadion::components::connector::Connector
A Connector
to connect to a Nakadi Stream
Methods
impl<C> Connector<C> where
C: SubscriptionApi + Send + Sync + 'static,
[src]
C: SubscriptionApi + Send + Sync + 'static,
pub fn new(stream_client: C, params: ConnectorParams) -> Self
[src]
pub fn from_client(stream_client: C) -> Self
[src]
Trait Implementations
impl<C> Connects for Connector<C> where
C: SubscriptionApi + Sync + Send + 'static,
[src]
C: SubscriptionApi + Sync + Send + 'static,
fn instrumentation(&self) -> Instrumentation
[src]
fn connect(
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<SubscriptionStreamChunks>
[src]
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<SubscriptionStreamChunks>
fn set_flow_id(&mut self, flow_id: FlowId)
[src]
fn set_connect_stream_timeout_secs(
&mut self,
connect_stream_timeout_secs: ConnectStreamTimeoutSecs
)
[src]
&mut self,
connect_stream_timeout_secs: ConnectStreamTimeoutSecs
)
fn set_instrumentation(&mut self, instrumentation: Instrumentation)
[src]
fn stream_parameters_mut(&mut self) -> &mut StreamParameters
[src]
impl<C> From<C> for Connector<C> where
C: SubscriptionApi + Send + Sync + 'static,
[src]
C: SubscriptionApi + Send + Sync + 'static,
Auto Trait Implementations
impl<C> !RefUnwindSafe for Connector<C>
impl<C> Send for Connector<C> where
C: Send,
C: Send,
impl<C> Sync for Connector<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Connector<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for Connector<C>
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> ConnectsExt for T where
T: Connects + Sync,
[src]
T: Connects + Sync,
fn frame_stream(
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, FramesStream)>
[src]
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, FramesStream)>
fn batch_stream(
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, BatchStream)>
[src]
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, BatchStream)>
fn events_stream<E: DeserializeOwned>(
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, EventsStream<E>)>
[src]
&self,
subscription_id: SubscriptionId
) -> ConnectFuture<(StreamId, EventsStream<E>)>
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>,