pub struct OpenStreamSessionOptions {
pub progress_token: String,
pub max_buffered_chunks: usize,
pub max_buffered_bytes: u64,
pub idle_timeout_ms: u64,
pub probe_timeout_ms: u64,
pub close_grace_period_ms: u64,
pub publish_frame: Option<PublishFrame>,
}Expand description
Construction options for an OpenStreamSession.
Fields§
§progress_token: StringThe stream id (stringified progressToken).
max_buffered_chunks: usizeMaximum buffered + queued chunks held before a Sequence error.
max_buffered_bytes: u64Maximum buffered + queued payload bytes before a Sequence error.
idle_timeout_ms: u64Idle interval before the reader probes the peer with a ping (ms).
probe_timeout_ms: u64Time the reader waits for a pong after probing before aborting (ms).
close_grace_period_ms: u64Grace period after a close with unresolved gaps before aborting (ms).
publish_frame: Option<PublishFrame>Outbound publisher for the consumer abort frame (optional).
Auto Trait Implementations§
impl !RefUnwindSafe for OpenStreamSessionOptions
impl !UnwindSafe for OpenStreamSessionOptions
impl Freeze for OpenStreamSessionOptions
impl Send for OpenStreamSessionOptions
impl Sync for OpenStreamSessionOptions
impl Unpin for OpenStreamSessionOptions
impl UnsafeUnpin for OpenStreamSessionOptions
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more