pub struct RuntimeExtensionScopeAllocator { /* private fields */ }Implementations§
Source§impl RuntimeExtensionScopeAllocator
impl RuntimeExtensionScopeAllocator
pub fn new(session_id: impl Into<String>) -> Result<Self, ScopeAllocationError>
pub fn session_id(&self) -> &str
pub fn allocate( &self, kind: RuntimeExtensionScopeKind, ) -> Result<String, ScopeAllocationError>
pub fn next_sequence(&self) -> Result<u64, ScopeAllocationError>
Trait Implementations§
Source§impl Clone for RuntimeExtensionScopeAllocator
impl Clone for RuntimeExtensionScopeAllocator
Source§fn clone(&self) -> RuntimeExtensionScopeAllocator
fn clone(&self) -> RuntimeExtensionScopeAllocator
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 RuntimeExtensionScopeAllocator
impl RefUnwindSafe for RuntimeExtensionScopeAllocator
impl Send for RuntimeExtensionScopeAllocator
impl Sync for RuntimeExtensionScopeAllocator
impl Unpin for RuntimeExtensionScopeAllocator
impl UnsafeUnpin for RuntimeExtensionScopeAllocator
impl UnwindSafe for RuntimeExtensionScopeAllocator
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