Enum roles_logic_sv2::parsers::CommonMessages
source · pub enum CommonMessages<'a> {
ChannelEndpointChanged(ChannelEndpointChanged),
SetupConnection(SetupConnection<'a>),
SetupConnectionError(SetupConnectionError<'a>),
SetupConnectionSuccess(SetupConnectionSuccess),
}
Variants§
ChannelEndpointChanged(ChannelEndpointChanged)
SetupConnection(SetupConnection<'a>)
SetupConnectionError(SetupConnectionError<'a>)
SetupConnectionSuccess(SetupConnectionSuccess)
Trait Implementations§
source§impl<'a> Clone for CommonMessages<'a>
impl<'a> Clone for CommonMessages<'a>
source§fn clone(&self) -> CommonMessages<'a>
fn clone(&self) -> CommonMessages<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for CommonMessages<'a>
impl<'a> Debug for CommonMessages<'a>
source§impl<'decoder> Decodable<'decoder> for CommonMessages<'decoder>
impl<'decoder> Decodable<'decoder> for CommonMessages<'decoder>
fn get_structure(_v: &[u8]) -> Result<Vec<FieldMarker>, Error>
fn from_decoded_fields(_v: Vec<DecodableField<'decoder>>) -> Result<Self, Error>
fn from_bytes(data: &'a mut [u8]) -> Result<Self, Error>
source§impl<'decoder> From<CommonMessages<'decoder>> for EncodableField<'decoder>
impl<'decoder> From<CommonMessages<'decoder>> for EncodableField<'decoder>
source§fn from(m: CommonMessages<'decoder>) -> Self
fn from(m: CommonMessages<'decoder>) -> Self
Converts to this type from the input type.
source§impl<'a> From<SetupConnection<'a>> for CommonMessages<'a>
impl<'a> From<SetupConnection<'a>> for CommonMessages<'a>
source§fn from(v: SetupConnection<'a>) -> Self
fn from(v: SetupConnection<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<SetupConnectionError<'a>> for CommonMessages<'a>
impl<'a> From<SetupConnectionError<'a>> for CommonMessages<'a>
source§fn from(v: SetupConnectionError<'a>) -> Self
fn from(v: SetupConnectionError<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<SetupConnectionSuccess> for CommonMessages<'a>
impl<'a> From<SetupConnectionSuccess> for CommonMessages<'a>
source§fn from(v: SetupConnectionSuccess) -> Self
fn from(v: SetupConnectionSuccess) -> Self
Converts to this type from the input type.
source§impl<'a> IsSv2Message for CommonMessages<'a>
impl<'a> IsSv2Message for CommonMessages<'a>
fn message_type(&self) -> u8
fn channel_bit(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for CommonMessages<'a>
impl<'a> RefUnwindSafe for CommonMessages<'a>
impl<'a> Send for CommonMessages<'a>
impl<'a> Sync for CommonMessages<'a>
impl<'a> Unpin for CommonMessages<'a>
impl<'a> !UnwindSafe for CommonMessages<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)