pub enum DepthGranularity {
Slot,
Oracle,
}Expand description
How often a depth run samples its source; each publishes its own dataset under the source.
Variants§
Implementations§
Source§impl DepthGranularity
impl DepthGranularity
pub const fn as_str(self) -> &'static str
pub fn is_default(&self) -> bool
Sourcepub const fn discriminant(self) -> u8
pub const fn discriminant(self) -> u8
Frozen for request-id hashing, as DepthSource::discriminant is.
Trait Implementations§
Source§impl Clone for DepthGranularity
impl Clone for DepthGranularity
impl Copy for DepthGranularity
Source§impl Debug for DepthGranularity
impl Debug for DepthGranularity
Source§impl Default for DepthGranularity
impl Default for DepthGranularity
Source§impl<'de> Deserialize<'de> for DepthGranularity
impl<'de> Deserialize<'de> for DepthGranularity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DepthGranularity
impl Display for DepthGranularity
impl Eq for DepthGranularity
Source§impl PartialEq for DepthGranularity
impl PartialEq for DepthGranularity
Source§impl Serialize for DepthGranularity
impl Serialize for DepthGranularity
impl StructuralPartialEq for DepthGranularity
Auto Trait Implementations§
impl Freeze for DepthGranularity
impl RefUnwindSafe for DepthGranularity
impl Send for DepthGranularity
impl Sync for DepthGranularity
impl Unpin for DepthGranularity
impl UnsafeUnpin for DepthGranularity
impl UnwindSafe for DepthGranularity
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