pub struct CaptureSpec {
pub tag: Arc<str>,
pub selector: Selector,
pub mode: CaptureMode,
pub budget: Option<Budget>,
}Expand description
The types on either side of a router, which are alchemy’s shared types. One capture: a tag for the consumer, the selector to match, the mode.
Fields§
§tag: Arc<str>Shared with every Selected delivered for this capture, so a
delivery costs a reference count and no allocation.
selector: Selector§mode: CaptureMode§budget: Option<Budget>The budget for a Materialize capture; None takes the router’s
max_capture_bytes. A stage with a more specific limit (a table’s
rows under max_record_bytes) sets it so the failure names that.
Implementations§
Source§impl CaptureSpec
impl CaptureSpec
pub fn new( tag: impl Into<Arc<str>>, selector: Selector, mode: CaptureMode, ) -> CaptureSpec
pub fn materialize(tag: impl Into<Arc<str>>, selector: Selector) -> CaptureSpec
pub fn observe(tag: impl Into<Arc<str>>, selector: Selector) -> CaptureSpec
pub fn budget(self, bytes: usize, name: &'static str) -> CaptureSpec
Trait Implementations§
Source§impl Clone for CaptureSpec
impl Clone for CaptureSpec
Source§fn clone(&self) -> CaptureSpec
fn clone(&self) -> CaptureSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptureSpec
impl Debug for CaptureSpec
impl Eq for CaptureSpec
Source§impl PartialEq for CaptureSpec
impl PartialEq for CaptureSpec
impl StructuralPartialEq for CaptureSpec
Auto Trait Implementations§
impl Freeze for CaptureSpec
impl RefUnwindSafe for CaptureSpec
impl Send for CaptureSpec
impl Sync for CaptureSpec
impl Unpin for CaptureSpec
impl UnsafeUnpin for CaptureSpec
impl UnwindSafe for CaptureSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.