pub struct RestoreState { /* private fields */ }Implementations§
Source§impl RestoreState
impl RestoreState
pub fn new(session: RedactionSession) -> Result<Self>
pub fn from_parts( session: RedactionSession, permits: Vec<RestorePermit>, ) -> Result<Self>
pub fn advance(&self, session: RedactionSession) -> Result<Self>
pub fn session(&self) -> &RedactionSession
pub fn permits(&self) -> &[RestorePermit]
pub fn restore_context(&self) -> Result<RestoreContext<'_>>
pub fn streaming_restore_context(&self) -> Result<StreamingRestoreContext<'_>>
pub fn restore_text(&self, text: &str) -> Result<RestoreResult>
Trait Implementations§
Source§impl Clone for RestoreState
impl Clone for RestoreState
Source§fn clone(&self) -> RestoreState
fn clone(&self) -> RestoreState
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 RestoreState
impl Debug for RestoreState
Source§impl<'de> Deserialize<'de> for RestoreState
impl<'de> Deserialize<'de> for RestoreState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RestoreState
Source§impl PartialEq for RestoreState
impl PartialEq for RestoreState
Source§impl Serialize for RestoreState
impl Serialize for RestoreState
impl StructuralPartialEq for RestoreState
Auto Trait Implementations§
impl Freeze for RestoreState
impl RefUnwindSafe for RestoreState
impl Send for RestoreState
impl Sync for RestoreState
impl Unpin for RestoreState
impl UnsafeUnpin for RestoreState
impl UnwindSafe for RestoreState
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