pub enum Completion {
Entry {
enumeration: EnumerationId,
entry: DirectoryEntry,
},
Terminal {
enumeration: EnumerationId,
outcome: TerminalOutcome,
},
}Expand description
One record taken from a session’s completion ring.
Variants§
Entry
One directory entry that satisfied its request’s predicate.
Terminal
The single terminal outcome of one enumeration.
No further record for that EnumerationId follows.
Implementations§
Source§impl Completion
impl Completion
Sourcepub const fn enumeration(&self) -> EnumerationId
pub const fn enumeration(&self) -> EnumerationId
The enumeration this record belongs to.
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Whether this record ends its enumeration.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Completion
impl !UnwindSafe for Completion
impl Freeze for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnsafeUnpin for Completion
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