pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn path(&self) -> &Path
pub fn list(&self) -> SessionLog
pub fn is_sealed(&self) -> bool
pub fn add_event( &mut self, role: Role, text: impl Into<String>, ) -> Result<EventPosition>
pub fn add_pending_object( &mut self, text: impl Into<String>, file_name: impl Into<String>, media_type: impl Into<String>, bytes: &[u8], ) -> Result<EventPosition>
pub fn read_pending_object( &self, position: EventPosition, ) -> Result<PendingObject>
pub fn seal(&mut self) -> Result<SealedSession>
pub fn delete_committed(self) -> Result<()>
pub fn delete_abandoned(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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