pub struct K1WebCoding { /* private fields */ }Implementations§
Source§impl K1WebCoding
impl K1WebCoding
pub fn open( cache_root: impl AsRef<Path>, user: TxId, config: WebCodingConfig, projection: Arc<K1WebProjection>, ) -> Result<Self, WebCodingError>
pub fn cache_epoch(&self) -> u64
pub fn view( &self, id: &WebId, authorize_workspace: &dyn Fn(&WebFamily) -> Result<bool, String>, ) -> Result<Option<Arc<SourcePackage>>, WebCodingError>
pub fn write( &mut self, candidate: &SourcePackage, authorize_workspace: &dyn Fn(&WebFamily) -> Result<bool, String>, ) -> Result<Arc<SourcePackage>, WebCodingError>
pub fn check( &mut self, id: &WebId, authorize_workspace: &dyn Fn(&WebFamily) -> Result<bool, String>, ) -> Result<CheckOutcome, WebCodingError>
pub fn publish( &mut self, id: &WebId, authorize_workspace: &dyn Fn(&WebFamily) -> Result<bool, String>, authorize_public_release: &dyn Fn(&SourcePackage, Digest) -> Result<bool, String>, ) -> Result<PublishResult, WebCodingError>
pub fn reset(&mut self) -> Result<(), WebCodingError>
Auto Trait Implementations§
impl Freeze for K1WebCoding
impl RefUnwindSafe for K1WebCoding
impl Send for K1WebCoding
impl Sync for K1WebCoding
impl Unpin for K1WebCoding
impl UnsafeUnpin for K1WebCoding
impl UnwindSafe for K1WebCoding
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