pub struct ReadSession;Expand description
Proof-free local read contract; the runtime caller selects the session.
Implementations§
Source§impl ReadSession
impl ReadSession
pub const ID: u64 = 0x415554480003
pub const NAME: &'static str = "portable_session_read"
pub const REQUEST_LIMITS: Limits = EMPTY_LIMITS
pub const RESPONSE_LIMITS: Limits = REPLY_LIMITS
pub fn encode_request(value: &()) -> Result<Vec<u8>, Error>
pub fn decode_request(bytes: &[u8]) -> Result<(), Error>
pub fn encode_response( value: &Result<SessionView, Text<256>>, ) -> Result<Vec<u8>, Error>
pub fn decode_response( bytes: &[u8], ) -> Result<Result<SessionView, Text<256>>, Error>
Auto Trait Implementations§
impl Freeze for ReadSession
impl RefUnwindSafe for ReadSession
impl Send for ReadSession
impl Sync for ReadSession
impl Unpin for ReadSession
impl UnsafeUnpin for ReadSession
impl UnwindSafe for ReadSession
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