pub struct Environment {
pub db: Arc<RwLock<Container>>,
/* private fields */
}Fields§
§db: Arc<RwLock<Container>>Implementations§
Source§impl Environment
impl Environment
pub fn new(db: Container, caller: Entity) -> Self
pub fn with_caller(&self, caller: Entity) -> Self
pub fn smart_contract(&self, callee: Entity) -> Self
pub fn session(&self, callee: Entity) -> Self
pub fn with_callee(&self, callee: Entity) -> Self
pub fn with_input_data(&self, input_data: Vec<u8>) -> Self
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
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 moreSource§impl Debug for Environment
impl Debug for Environment
Auto Trait Implementations§
impl !Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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