[−][src]Struct wascc_actor::events::EventStreamsHostBinding
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]
&self,
stream: &str,
values: HashMap<String, String>
) -> HandlerResult<String>
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
impl RefUnwindSafe for EventStreamsHostBinding
impl Send for EventStreamsHostBinding
impl Sync for EventStreamsHostBinding
impl Unpin for EventStreamsHostBinding
impl UnwindSafe for EventStreamsHostBinding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,