pub struct AttachObserveEventLogOptions<T: Clone> {
pub path: Option<String>,
pub stream: Option<String>,
pub map: Rc<ObserveEventLogMap<T>>,
pub on_error: Option<Rc<ObserveEventLogErrorFn<T>>>,
}Expand description
AttachObserveEventLogOptions data container.
Fields§
§path: Option<String>path field for path.
stream: Option<String>stream field for stream.
map: Rc<ObserveEventLogMap<T>>map field for map.
on_error: Option<Rc<ObserveEventLogErrorFn<T>>>on_error field for on error.
Implementations§
Source§impl<T> AttachObserveEventLogOptions<T>
impl<T> AttachObserveEventLogOptions<T>
Source§impl<T: Clone> AttachObserveEventLogOptions<T>
impl<T: Clone> AttachObserveEventLogOptions<T>
Sourcepub fn from_map(map: impl Fn(&ObserveEvent) -> Option<T> + 'static) -> Self
pub fn from_map(map: impl Fn(&ObserveEvent) -> Option<T> + 'static) -> Self
Creates or computes from_map.
Sourcepub fn with_stream(self, stream: impl Into<String>) -> Self
pub fn with_stream(self, stream: impl Into<String>) -> Self
Updates or reads with_stream.
Sourcepub fn with_map(
self,
map: impl Fn(&ObserveEvent) -> Option<T> + 'static,
) -> Self
pub fn with_map( self, map: impl Fn(&ObserveEvent) -> Option<T> + 'static, ) -> Self
Updates or reads with_map.
Sourcepub fn with_on_error(
self,
on_error: impl Fn(StorageError, ObserveEventLogErrorContext<T>) + 'static,
) -> Self
pub fn with_on_error( self, on_error: impl Fn(StorageError, ObserveEventLogErrorContext<T>) + 'static, ) -> Self
Updates or reads with_on_error.
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for AttachObserveEventLogOptions<T>
impl<T: Clone + Clone> Clone for AttachObserveEventLogOptions<T>
Source§fn clone(&self) -> AttachObserveEventLogOptions<T>
fn clone(&self) -> AttachObserveEventLogOptions<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for AttachObserveEventLogOptions<T>
impl<T> !RefUnwindSafe for AttachObserveEventLogOptions<T>
impl<T> !Send for AttachObserveEventLogOptions<T>
impl<T> !Sync for AttachObserveEventLogOptions<T>
impl<T> Unpin for AttachObserveEventLogOptions<T>
impl<T> UnsafeUnpin for AttachObserveEventLogOptions<T>
impl<T> !UnwindSafe for AttachObserveEventLogOptions<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