pub struct SchemaEventMarshaller<T> { /* private fields */ }Expand description
Marshals the events of a schema-mode event stream union into frames.
T is the generated stream union; its [SerializableStruct::serialize_members] names the
active variant, and the variant’s member schemas drive header and payload placement.
Implementations§
Source§impl<T> SchemaEventMarshaller<T>
impl<T> SchemaEventMarshaller<T>
Sourcepub fn new(protocol: SharedServerProtocol) -> Self
pub fn new(protocol: SharedServerProtocol) -> Self
Creates a marshaller that frames events through protocol’s event stream capability.
Trait Implementations§
Source§impl<T> Debug for SchemaEventMarshaller<T>
impl<T> Debug for SchemaEventMarshaller<T>
Auto Trait Implementations§
impl<T> !Freeze for SchemaEventMarshaller<T>
impl<T> !RefUnwindSafe for SchemaEventMarshaller<T>
impl<T> Send for SchemaEventMarshaller<T>
impl<T> Sync for SchemaEventMarshaller<T>
impl<T> Unpin for SchemaEventMarshaller<T>
impl<T> UnsafeUnpin for SchemaEventMarshaller<T>
impl<T> !UnwindSafe for SchemaEventMarshaller<T>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.