[−][src]Struct orga::state::WrapperStore
A State
implementation which exposes the underlying raw store (itself
implementing Store
). If the underlying store is only Read
, then the
WrapperStore
will only implement Read
.
This can be useful when composing State
types into a hierarchy, when
access to the raw Store
API is still necessary.
Trait Implementations
impl<S: Read> Deref for WrapperStore<S>
[src]
impl<S: Store> DerefMut for WrapperStore<S>
[src]
impl<S: Read> State<S> for WrapperStore<S>
[src]
fn wrap_store(store: S) -> Result<WrapperStore<S>>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for WrapperStore<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for WrapperStore<S> where
S: Send,
S: Send,
impl<S> Sync for WrapperStore<S> where
S: Sync,
S: Sync,
impl<S> Terminated for WrapperStore<S> where
S: Terminated,
S: Terminated,
impl<S> Unpin for WrapperStore<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for WrapperStore<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, T> Read for T where
S: Read,
T: Deref<Target = S>,
[src]
S: Read,
T: Deref<Target = S>,
fn get(&Self, &[u8]) -> Result<Option<Vec<u8>>, Error>
[src]
fn wrap<T: State<Self>>(self) -> Result<T>
[src]
fn into_shared(self) -> Shared<Self>
[src]
fn prefix(self, prefix: u8) -> Prefixed<Self>
[src]
fn into_splitter(self) -> Splitter<Self>
[src]
fn as_ref<'a>(&'a self) -> &'a Self
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<S> Store for S where
S: Read + Write,
[src]
S: Read + Write,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<S, T> Write for T where
S: Write,
T: DerefMut<Target = S>,
[src]
S: Write,
T: DerefMut<Target = S>,