Skip to main content

Sinks

Struct Sinks 

Source
pub struct Sinks { /* private fields */ }

Implementations§

Source§

impl Sinks

Source

pub fn start(config: &EffectsConfig) -> Result<Sinks>

Source

pub fn env(&self) -> Vec<(String, String)>

Source

pub fn reset(&self, cwd: &Path, repo: &Path) -> Result<()>

Runs --db-reset in cwd, the folder the case or server runs in.

Source

pub fn take(&self, cwd: &Path, repo: &Path) -> Vec<u8> ⓘ

Collects the effects and runs --db-dump in cwd, the folder the case or server ran in.

Trait Implementations§

Source§

impl Drop for Sinks

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Sinks

§

impl !UnwindSafe for Sinks

§

impl Forget for Sinks

§

impl Freeze for Sinks
where *const LeafNode<String, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, String)>>: Freeze, *const u8 is !null: Freeze, PhantomData<HttpResponseRule>: Freeze, PhantomData<u8>: Freeze, *const ArcInner<Mutex<Vec<String>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Vec<String>>>>: Freeze, *const ArcInner<Atomic<usize>> is !null: Freeze, PhantomData<ArcInner<Atomic<usize>>>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const ArcInner<Packet<'static, ()>> is !null: Freeze, PhantomData<ArcInner<Packet<'static, ()>>>: Freeze,

§

impl Move for Sinks

§

impl Send for Sinks
where NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, RawVecInner: Send, Arc<Mutex<Vec<String>>>: Send, Arc<Atomic<usize>>: Send, Arc<Atomic<bool>>: Send, JoinHandle<()>: Send,

§

impl Sync for Sinks
where NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, RawVecInner: Sync, Arc<Mutex<Vec<String>>>: Sync, Arc<Atomic<usize>>: Sync, Arc<Atomic<bool>>: Sync, JoinHandle<()>: Sync,

§

impl Unpin for Sinks
where *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, *const u8 is !null: Unpin, Arc<Mutex<Vec<String>>>: Unpin, Arc<Atomic<usize>>: Unpin, Arc<Atomic<bool>>: Unpin, Arc<Inner, System>: Unpin, Arc<Packet<'static, ()>>: Unpin,

§

impl UnsafeUnpin for Sinks
where *const LeafNode<String, String> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, String)>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<HttpResponseRule>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const ArcInner<Mutex<Vec<String>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Vec<String>>>>: UnsafeUnpin, *const ArcInner<Atomic<usize>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<usize>>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const ArcInner<Packet<'static, ()>> is !null: UnsafeUnpin, PhantomData<ArcInner<Packet<'static, ()>>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.