pub struct TerminalSlot { /* private fields */ }Expand description
The operation’s single terminal slot.
TerminalSlot::commit succeeds once and refuses every later attempt, including an identical
one. That is the exactly-once invariant of §7.12 as an API: no caller can double-commit by
forgetting to check first, and a resumed operation that re-derives its terminal is told so
instead of emitting a second one.
Implementations§
Source§impl TerminalSlot
impl TerminalSlot
pub fn empty() -> Self
pub fn commit( &mut self, terminal: KernelTerminal, ) -> Result<&KernelTerminal, Box<TerminalAlreadyCommitted>>
pub fn get(&self) -> Option<&KernelTerminal>
pub fn is_committed(&self) -> bool
Trait Implementations§
Source§impl Clone for TerminalSlot
impl Clone for TerminalSlot
Source§fn clone(&self) -> TerminalSlot
fn clone(&self) -> TerminalSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalSlot
impl Debug for TerminalSlot
Source§impl Default for TerminalSlot
impl Default for TerminalSlot
Source§fn default() -> TerminalSlot
fn default() -> TerminalSlot
Returns the “default value” for a type. Read more
Source§impl PartialEq for TerminalSlot
impl PartialEq for TerminalSlot
impl StructuralPartialEq for TerminalSlot
Auto Trait Implementations§
impl Freeze for TerminalSlot
impl RefUnwindSafe for TerminalSlot
impl Send for TerminalSlot
impl Sync for TerminalSlot
impl Unpin for TerminalSlot
impl UnsafeUnpin for TerminalSlot
impl UnwindSafe for TerminalSlot
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