pub enum SentCode {
SentCode(SentCode),
Success(SentCodeSuccess),
PaymentRequired(SentCodePaymentRequired),
}Expand description
Variants§
Trait Implementations§
Source§impl Deserializable for SentCode
impl Deserializable for SentCode
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<SentCodePaymentRequired> for SentCode
impl From<SentCodePaymentRequired> for SentCode
Source§fn from(x: SentCodePaymentRequired) -> Self
fn from(x: SentCodePaymentRequired) -> Self
Converts to this type from the input type.
Source§impl From<SentCodeSuccess> for SentCode
impl From<SentCodeSuccess> for SentCode
Source§fn from(x: SentCodeSuccess) -> Self
fn from(x: SentCodeSuccess) -> Self
Converts to this type from the input type.
Source§impl Serializable for SentCode
impl Serializable for SentCode
Source§impl TryFrom<SentCode> for SentCodePaymentRequired
impl TryFrom<SentCode> for SentCodePaymentRequired
Source§impl TryFrom<SentCode> for SentCodeSuccess
impl TryFrom<SentCode> for SentCodeSuccess
impl StructuralPartialEq for SentCode
Auto Trait Implementations§
impl Freeze for SentCode
impl RefUnwindSafe for SentCode
impl Send for SentCode
impl Sync for SentCode
impl Unpin for SentCode
impl UnsafeUnpin for SentCode
impl UnwindSafe for SentCode
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