Enum solana_sdk::message::VersionedMessage
source · [−]Expand description
Message versions supported by the Solana runtime.
Serialization
If the first bit is set, the remaining 7 bits will be used to determine
which message version is serialized starting from version 0
. If the first
is bit is not set, all bytes are used to encode the legacy Message
format.
Variants
Legacy(Message)
V0(Message)
Implementations
sourceimpl VersionedMessage
impl VersionedMessage
pub fn header(&self) -> &MessageHeader
pub fn static_account_keys(&self) -> &[Pubkey]
pub fn into_static_account_keys(self) -> Vec<Pubkey, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn static_account_keys_iter(&self) -> impl Iterator<Item = &Pubkey>
pub fn static_account_keys_len(&self) -> usize
pub fn recent_blockhash(&self) -> &Hash
pub fn set_recent_blockhash(&mut self, recent_blockhash: Hash)
pub fn serialize(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl AbiEnumVisitor for VersionedMessage
impl AbiEnumVisitor for VersionedMessage
pub fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl AbiExample for VersionedMessage
impl AbiExample for VersionedMessage
pub fn example() -> VersionedMessage
sourceimpl Clone for VersionedMessage
impl Clone for VersionedMessage
sourcepub fn clone(&self) -> VersionedMessage
pub fn clone(&self) -> VersionedMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VersionedMessage
impl Debug for VersionedMessage
sourceimpl Default for VersionedMessage
impl Default for VersionedMessage
sourcepub fn default() -> VersionedMessage
pub fn default() -> VersionedMessage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for VersionedMessage
impl<'de> Deserialize<'de> for VersionedMessage
sourcepub fn deserialize<D>(
deserializer: D
) -> Result<VersionedMessage, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<VersionedMessage, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<VersionedMessage> for VersionedMessage
impl PartialEq<VersionedMessage> for VersionedMessage
sourcepub fn eq(&self, other: &VersionedMessage) -> bool
pub fn eq(&self, other: &VersionedMessage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &VersionedMessage) -> bool
pub fn ne(&self, other: &VersionedMessage) -> bool
This method tests for !=
.
sourceimpl Sanitize for VersionedMessage
impl Sanitize for VersionedMessage
pub fn sanitize(&self) -> Result<(), SanitizeError>
sourceimpl Serialize for VersionedMessage
impl Serialize for VersionedMessage
sourcepub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for VersionedMessage
impl StructuralEq for VersionedMessage
impl StructuralPartialEq for VersionedMessage
Auto Trait Implementations
impl RefUnwindSafe for VersionedMessage
impl Send for VersionedMessage
impl Sync for VersionedMessage
impl Unpin for VersionedMessage
impl UnwindSafe for VersionedMessage
Blanket Implementations
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more