pub enum SourceScope {
SourceHistory(i32),
SourceRevision(RevisionRef),
}Expand description
Applies only to SOURCE_CONTENT and SOURCE_SYMBOL. Omission or UNSPECIFIED means CURRENT. An explicit scope requires at least one of those domains; other selected domains retain their own semantics (in particular, REVISION still resolves accepted historical identifiers). Scope, visibility and index readiness are evaluated before pagination; cursors are bound to this selection. Neither scope grants source access.
Variants§
SourceHistory(i32)
SourceRevision(RevisionRef)
Search within one exact revision, intersected with the selected Threads and Spools. Requires nonempty threads belonging to this revision’s Spool; each result must originate from that Thread’s accepted source history. An unknown, unaccepted or withheld revision yields no visible candidates.
Implementations§
Source§impl SourceScope
impl SourceScope
Sourcepub fn merge(
field: &mut Option<SourceScope>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<SourceScope>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for SourceScope
impl Clone for SourceScope
Source§fn clone(&self) -> SourceScope
fn clone(&self) -> SourceScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceScope
impl Debug for SourceScope
impl Eq for SourceScope
Source§impl Hash for SourceScope
impl Hash for SourceScope
Source§impl PartialEq for SourceScope
impl PartialEq for SourceScope
impl StructuralPartialEq for SourceScope
Auto Trait Implementations§
impl Freeze for SourceScope
impl RefUnwindSafe for SourceScope
impl Send for SourceScope
impl Sync for SourceScope
impl Unpin for SourceScope
impl UnsafeUnpin for SourceScope
impl UnwindSafe for SourceScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more