pub struct ActiveSession { /* private fields */ }Expand description
Default active-session handle.
Implementations§
Source§impl ActiveSession
impl ActiveSession
Sourcepub fn new(layout: RepositoryLayout) -> Self
pub fn new(layout: RepositoryLayout) -> Self
Create an active-session handle for a repository layout.
Sourcepub fn append_patch(
&self,
envelope: &ObjectEnvelope,
active_patch_limit: usize,
) -> Result<ActiveCommitResult>
pub fn append_patch( &self, envelope: &ObjectEnvelope, active_patch_limit: usize, ) -> Result<ActiveCommitResult>
Append one signed patch envelope while holding the active-session lock. active_patch_limit
is DC-57’s hard block (NFR-PERF-02): once the active WAL already holds this many patches, no
more may be appended — see node_authoring.rs::author_inner’s identical check, the one other
authoring path this definition must also hold for.
Trait Implementations§
Source§impl Clone for ActiveSession
impl Clone for ActiveSession
Source§fn clone(&self) -> ActiveSession
fn clone(&self) -> ActiveSession
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 moreAuto Trait Implementations§
impl Freeze for ActiveSession
impl RefUnwindSafe for ActiveSession
impl Send for ActiveSession
impl Sync for ActiveSession
impl Unpin for ActiveSession
impl UnsafeUnpin for ActiveSession
impl UnwindSafe for ActiveSession
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