pub struct SchemaValueStream { /* private fields */ }Expand description
An affine wrapper around a native Component Model stream of schema
values. The indirection lets a stream occur anywhere in a recursive
schema-value-tree while preserving the native stream endpoint.
Implementations§
Source§impl SchemaValueStream
impl SchemaValueStream
Sourcepub async fn wrap(
reader: RawStreamReader<&'static StreamVtable<SchemaValueTree>>,
) -> SchemaValueStream
pub async fn wrap( reader: RawStreamReader<&'static StreamVtable<SchemaValueTree>>, ) -> SchemaValueStream
Wraps any native schema-value reader for placement in a value tree.
Source§impl SchemaValueStream
impl SchemaValueStream
Sourcepub async fn unwrap(
value: SchemaValueStream,
) -> RawStreamReader<&'static StreamVtable<SchemaValueTree>>
pub async fn unwrap( value: SchemaValueStream, ) -> RawStreamReader<&'static StreamVtable<SchemaValueTree>>
Consumes a schema-value-stream wrapper and returns its native reader.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SchemaValueStream
impl RefUnwindSafe for SchemaValueStream
impl Send for SchemaValueStream
impl Sync for SchemaValueStream
impl Unpin for SchemaValueStream
impl UnsafeUnpin for SchemaValueStream
impl UnwindSafe for SchemaValueStream
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