Struct linera_execution::ApplicationCallOutcome
source · pub struct ApplicationCallOutcome {
pub value: Vec<u8>,
pub execution_outcome: RawExecutionOutcome<Vec<u8>>,
pub create_sessions: Vec<Vec<u8>>,
}Expand description
The result of calling into a user application.
Fields§
§value: Vec<u8>The return value.
execution_outcome: RawExecutionOutcome<Vec<u8>>The externally-visible result.
create_sessions: Vec<Vec<u8>>The states of the new sessions to be created, if any.
Implementations§
source§impl ApplicationCallOutcome
impl ApplicationCallOutcome
sourcepub fn with_message(self, message: RawOutgoingMessage<Vec<u8>>) -> Self
pub fn with_message(self, message: RawOutgoingMessage<Vec<u8>>) -> Self
Adds a message to this ApplicationCallOutcome.
sourcepub fn with_new_session(self, session_state: Vec<u8>) -> Self
pub fn with_new_session(self, session_state: Vec<u8>) -> Self
Registers a new session to be created with the provided session_state.
Trait Implementations§
source§impl Default for ApplicationCallOutcome
impl Default for ApplicationCallOutcome
source§fn default() -> ApplicationCallOutcome
fn default() -> ApplicationCallOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationCallOutcome
impl Send for ApplicationCallOutcome
impl Sync for ApplicationCallOutcome
impl Unpin for ApplicationCallOutcome
impl UnwindSafe for ApplicationCallOutcome
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn