pub struct RefEntry {
pub name: String,
pub state_id: StateId,
pub kind: RefKind,
}Expand description
One advertised repository ref.
Fields§
§name: String§state_id: StateId§kind: RefKindImplementations§
Source§impl RefEntry
impl RefEntry
pub fn thread(name: impl Into<String>, state_id: StateId) -> Self
pub fn marker(name: impl Into<String>, state_id: StateId) -> Self
pub fn synthetic_frontier( name: SyntheticFrontierName, state_id: StateId, ) -> Self
pub fn from_advertised( name: impl Into<String>, state_id: StateId, advertised_as_thread: bool, ) -> Self
pub fn is_user_thread(&self) -> bool
pub fn is_marker(&self) -> bool
Sourcepub fn advertised(&self) -> Result<AdvertisedRef, AdvertisedRefError>
pub fn advertised(&self) -> Result<AdvertisedRef, AdvertisedRefError>
Route this entry to its type-distinct consume form.
RefKind::SyntheticFrontierRoot yields only a
SyntheticFrontierName. It never constructs a ThreadName or
MarkerName.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefEntry
impl<'de> Deserialize<'de> for RefEntry
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
Auto Trait Implementations§
impl Freeze for RefEntry
impl RefUnwindSafe for RefEntry
impl Send for RefEntry
impl Sync for RefEntry
impl Unpin for RefEntry
impl UnsafeUnpin for RefEntry
impl UnwindSafe for RefEntry
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