[][src]Struct wascc_actor::events::EventStreamsHostBinding

pub struct EventStreamsHostBinding { /* fields omitted */ }

A host binding for an event stream capability provider

Implementations

impl EventStreamsHostBinding[src]

pub fn write_event(
    &self,
    stream: &str,
    values: HashMap<String, String>
) -> HandlerResult<String>
[src]

Writes the given event (a collection of key-value pairs) to a named stream

pub fn read_all(&self, stream: &str) -> HandlerResult<Vec<Event>>[src]

Reads all available events from the given stream

pub fn read_limit(&self, stream: &str, limit: u64) -> HandlerResult<Vec<Event>>[src]

Reads all available events from a given stream up to a given maximum number. May return less than the specified limit if less than that exist on the stream

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.