pub struct MemoryInbox(/* private fields */);Expand description
An in-memory DelegateInbox: durable for the life of the process.
Trait Implementations§
Source§impl Debug for MemoryInbox
impl Debug for MemoryInbox
Source§impl Default for MemoryInbox
impl Default for MemoryInbox
Source§fn default() -> MemoryInbox
fn default() -> MemoryInbox
Returns the “default value” for a type. Read more
Source§impl DelegateInbox for MemoryInbox
impl DelegateInbox for MemoryInbox
Source§fn persist(&self, address: &str, bytes: &[u8]) -> Result<()>
fn persist(&self, address: &str, bytes: &[u8]) -> Result<()>
Persist
bytes under address durably — written and synced, its directory entry
too — before returning. An acknowledgement follows only after this returns.Source§fn addresses(&self) -> Result<Vec<String>>
fn addresses(&self) -> Result<Vec<String>>
Every address held. A quarantined copy is not held.
Source§fn remove(&self, address: &str) -> Result<()>
fn remove(&self, address: &str) -> Result<()>
Delete the copy under
address. Removing an absent one is not an error.Source§fn quarantine(&self, address: &str, note: &Quarantine) -> Result<()>
fn quarantine(&self, address: &str, note: &Quarantine) -> Result<()>
Move the held copy under
address to quarantine with note, durably, keeping its
bytes. Quarantining an absent copy is not an error.Source§fn quarantined(&self) -> Result<Vec<(String, Quarantine)>>
fn quarantined(&self) -> Result<Vec<(String, Quarantine)>>
Every quarantined copy’s address and note, each once.
Auto Trait Implementations§
impl !Freeze for MemoryInbox
impl RefUnwindSafe for MemoryInbox
impl Send for MemoryInbox
impl Sync for MemoryInbox
impl Unpin for MemoryInbox
impl UnsafeUnpin for MemoryInbox
impl UnwindSafe for MemoryInbox
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more