pub struct OpenStreamWriterOptions {
pub progress_token: String,
pub publish_frame: PublishFrame,
pub content_type: Option<String>,
pub on_close: Option<OnCloseHook>,
pub on_abort: Option<OnAbortHook>,
}Expand description
Construction options for an OpenStreamWriter.
Fields§
§progress_token: StringThe stream id (stringified progressToken).
publish_frame: PublishFrameOutbound publisher (same seam as the session).
content_type: Option<String>Optional advisory start content type (writer-settable, receiver-ignored).
on_close: Option<OnCloseHook>Fired after a terminal close frame is published.
on_abort: Option<OnAbortHook>Fired after a terminal abort frame is published.
Auto Trait Implementations§
impl !RefUnwindSafe for OpenStreamWriterOptions
impl !UnwindSafe for OpenStreamWriterOptions
impl Freeze for OpenStreamWriterOptions
impl Send for OpenStreamWriterOptions
impl Sync for OpenStreamWriterOptions
impl Unpin for OpenStreamWriterOptions
impl UnsafeUnpin for OpenStreamWriterOptions
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