pub struct SessionScope { /* private fields */ }Implementations§
Source§impl SessionScope
impl SessionScope
pub fn new() -> Self
pub fn open( &self, authority: [u8; 12], document: CodeDocument, source: OpenedSource, ) -> Result<OpenedLibrary, SessionError>
pub fn refresh( &self, authority: [u8; 12], document: CodeDocument, source: OpenedSource, ) -> Result<OpenedLibrary, SessionError>
pub fn validate( &self, authority: [u8; 12], opened: &OpenedLibrary, document: &CodeDocument, source: &OpenedSource, ) -> Result<(), SessionError>
pub fn replacement( &self, authority: [u8; 12], opened: &OpenedLibrary, document: &CodeDocument, source: &OpenedSource, part: DocumentPart, contents: String, ) -> Result<CodeDocument, SessionError>
Trait Implementations§
Source§impl Clone for SessionScope
impl Clone for SessionScope
Auto Trait Implementations§
impl Freeze for SessionScope
impl RefUnwindSafe for SessionScope
impl Send for SessionScope
impl Sync for SessionScope
impl Unpin for SessionScope
impl UnsafeUnpin for SessionScope
impl UnwindSafe for SessionScope
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