Struct ic_event_hub::event_hub::EventHub
source · [−]pub struct EventHub(_);
Implementations
sourceimpl EventHub
impl EventHub
pub fn add_event_listener(
&mut self,
filter: EventFilter,
event_listener_method_name: String,
caller: Principal
)
pub fn match_event_listeners(
&self,
filter: &EventFilter
) -> Vec<RemoteCallEndpoint>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn match_event_listeners_by_topics(
&self,
topics: &BTreeSet<EventField>
) -> Vec<RemoteCallEndpoint>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn remove_event_listener(
&mut self,
filter: &EventFilter,
event_listener_method_name: String,
caller: Principal
) -> Result<(), String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EventHub
impl Send for EventHub
impl Sync for EventHub
impl Unpin for EventHub
impl UnwindSafe for EventHub
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more