pub enum SourceId {
Table(TableId),
View(ViewId),
Flow(FlowId),
TableVirtual(TableVirtualId),
RingBuffer(RingBufferId),
Dictionary(DictionaryId),
}Variants§
Table(TableId)
View(ViewId)
Flow(FlowId)
TableVirtual(TableVirtualId)
RingBuffer(RingBufferId)
Dictionary(DictionaryId)
Implementations§
Source§impl SourceId
impl SourceId
pub fn table(id: impl Into<TableId>) -> Self
pub fn view(id: impl Into<ViewId>) -> Self
pub fn flow(id: impl Into<FlowId>) -> Self
pub fn table_virtual(id: impl Into<TableVirtualId>) -> Self
pub fn ring_buffer(id: impl Into<RingBufferId>) -> Self
pub fn dictionary(id: impl Into<DictionaryId>) -> Self
Source§impl SourceId
impl SourceId
Sourcepub fn to_type_u8(&self) -> u8
pub fn to_type_u8(&self) -> u8
Returns the type discriminant as a u8 value
Sourcepub fn next(&self) -> SourceId
pub fn next(&self) -> SourceId
Creates a next source id for range operations (numerically next)
Sourcepub fn prev(&self) -> SourceId
pub fn prev(&self) -> SourceId
Creates a previous source id for range operations (numerically previous) In descending order encoding, this gives us the next value in sort order Uses wrapping_sub to handle ID 0 correctly (wraps to u64::MAX)
pub fn to_table_id(self) -> Result<TableId>
pub fn to_view_id(self) -> Result<ViewId>
pub fn to_flow_id(self) -> Result<FlowId>
pub fn to_table_virtual_id(self) -> Result<TableVirtualId>
pub fn to_ring_buffer_id(self) -> Result<RingBufferId>
pub fn to_dictionary_id(self) -> Result<DictionaryId>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SourceId
impl<'de> Deserialize<'de> for SourceId
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 From<DictionaryId> for SourceId
impl From<DictionaryId> for SourceId
Source§fn from(id: DictionaryId) -> Self
fn from(id: DictionaryId) -> Self
Converts to this type from the input type.
Source§impl From<RingBufferId> for SourceId
impl From<RingBufferId> for SourceId
Source§fn from(id: RingBufferId) -> Self
fn from(id: RingBufferId) -> Self
Converts to this type from the input type.
Source§impl From<TableVirtualId> for SourceId
impl From<TableVirtualId> for SourceId
Source§fn from(id: TableVirtualId) -> Self
fn from(id: TableVirtualId) -> Self
Converts to this type from the input type.
Source§impl Ord for SourceId
impl Ord for SourceId
Source§impl PartialEq<DictionaryId> for SourceId
impl PartialEq<DictionaryId> for SourceId
Source§impl PartialEq<RingBufferId> for SourceId
impl PartialEq<RingBufferId> for SourceId
Source§impl PartialEq<TableVirtualId> for SourceId
impl PartialEq<TableVirtualId> for SourceId
Source§impl PartialOrd for SourceId
impl PartialOrd for SourceId
impl Copy for SourceId
impl Eq for SourceId
impl StructuralPartialEq for SourceId
Auto Trait Implementations§
impl Freeze for SourceId
impl RefUnwindSafe for SourceId
impl Send for SourceId
impl Sync for SourceId
impl Unpin for SourceId
impl UnwindSafe for SourceId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)