Struct concordium_std::ContractState [−][src]
pub struct ContractState { /* fields omitted */ }
Expand description
A type representing the constract state bytes.
Trait Implementations
impl Default for ContractState
[src]
impl Default for ContractState
[src]fn default() -> ContractState
[src]
fn default() -> ContractState
[src]Returns the “default value” for a type. Read more
impl HasContractState<()> for ContractState
[src]
impl HasContractState<()> for ContractState
[src]type ContractStateData = ()
fn open(_: Self::ContractStateData) -> Self
[src]
fn open(_: Self::ContractStateData) -> Self
[src]Open the contract state. Only one instance can be opened at the same time. Read more
impl Read for ContractState
[src]
impl Read for ContractState
[src]fn read_u64(&mut self) -> ParseResult<u64>
[src]
fn read_u64(&mut self) -> ParseResult<u64>
[src]Read a u32
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
fn read_u32(&mut self) -> ParseResult<u32>
[src]
fn read_u32(&mut self) -> ParseResult<u32>
[src]Read a u32
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
fn read_u8(&mut self) -> ParseResult<u8>
[src]
fn read_u8(&mut self) -> ParseResult<u8>
[src]Read a u8
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
[src]
fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
[src]Read a number of bytes into the provided buffer. The returned value is
Ok(n)
if a read was successful, and n
bytes were read (n
could be
0). Read more
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
[src]Read exactly the required number of bytes. If not enough bytes could be
read the function returns Err(_)
, and the contents of the given buffer
is unspecified. Read more
fn read_u16(&mut self) -> Result<u16, ParseError>
[src]
fn read_u16(&mut self) -> Result<u16, ParseError>
[src]Read a u16
in little-endian format.
fn read_i64(&mut self) -> Result<i64, ParseError>
[src]
fn read_i64(&mut self) -> Result<i64, ParseError>
[src]Read a i64
in little-endian format.
fn read_i32(&mut self) -> Result<i32, ParseError>
[src]
fn read_i32(&mut self) -> Result<i32, ParseError>
[src]Read a i32
in little-endian format.
fn read_i16(&mut self) -> Result<i16, ParseError>
[src]
fn read_i16(&mut self) -> Result<i16, ParseError>
[src]Read a i16
in little-endian format.
fn read_i8(&mut self) -> Result<i8, ParseError>
[src]
fn read_i8(&mut self) -> Result<i8, ParseError>
[src]Read a i32
in little-endian format.
impl Seek for ContractState
[src]
impl Seek for ContractState
[src]impl Write for ContractState
[src]
impl Write for ContractState
[src]type Err = ()
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>
[src]Try to write the given buffer into the output stream. If writes are successful returns the number of bytes written. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContractState
impl Send for ContractState
impl Sync for ContractState
impl Unpin for ContractState
impl UnwindSafe for ContractState
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<R, T> Get<T> for R where
T: Deserial,
R: Read,
[src]
impl<R, T> Get<T> for R where
T: Deserial,
R: Read,
[src]