pub struct Context(pub Arc<Mutex<Context>>);Tuple Fields§
§0: Arc<Mutex<Context>>Implementations§
Source§impl Context
impl Context
pub fn new_stdout() -> Self
pub fn new_with_output<O: OutputBound>(o: Arc<Mutex<O>>) -> Self
pub async fn set_abort_reason(&self, reason: FastStr)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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