pub struct NotificationsBuilder { /* private fields */ }Expand description
A pending notifications subscription, created with
OxiaClient::notifications. .await it to obtain the
Notifications stream.
Implementations§
Source§impl NotificationsBuilder
impl NotificationsBuilder
Sourcepub fn buffer_size(self, buffer_size: usize) -> Self
pub fn buffer_size(self, buffer_size: usize) -> Self
Sets the subscription’s channel capacity (default 100). When the buffer is full, delivery applies backpressure to the per-shard listeners.
Trait Implementations§
Source§impl Debug for NotificationsBuilder
impl Debug for NotificationsBuilder
Source§impl IntoFuture for NotificationsBuilder
impl IntoFuture for NotificationsBuilder
Source§type Output = Result<Notifications, OxiaError>
type Output = Result<Notifications, OxiaError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <NotificationsBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <NotificationsBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationsBuilder
impl !UnwindSafe for NotificationsBuilder
impl Freeze for NotificationsBuilder
impl Send for NotificationsBuilder
impl Sync for NotificationsBuilder
impl Unpin for NotificationsBuilder
impl UnsafeUnpin for NotificationsBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request