pub enum Message {
StandardRequest(StandardRequest),
Notification(Notification),
OkResponse(Response),
ErrorResponse(Response),
}Variants§
StandardRequest(StandardRequest)
Notification(Notification)
OkResponse(Response)
ErrorResponse(Response)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Notification> for Message
impl From<Notification> for Message
Source§fn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
Source§impl From<SetDifficulty> for Message
impl From<SetDifficulty> for Message
Source§fn from(sd: SetDifficulty) -> Self
fn from(sd: SetDifficulty) -> Self
Converts to this type from the input type.
Source§impl From<SetExtranonce<'_>> for Message
impl From<SetExtranonce<'_>> for Message
Source§fn from(se: SetExtranonce<'_>) -> Self
fn from(se: SetExtranonce<'_>) -> Self
Converts to this type from the input type.
Source§impl From<SetVersionMask> for Message
impl From<SetVersionMask> for Message
Source§fn from(sv: SetVersionMask) -> Self
fn from(sv: SetVersionMask) -> Self
Converts to this type from the input type.
Source§impl From<StandardRequest> for Message
impl From<StandardRequest> for Message
Source§fn from(sr: StandardRequest) -> Self
fn from(sr: StandardRequest) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<Message> for Client2Server<'a>
impl<'a> TryFrom<Message> for Client2Server<'a>
Source§impl<'a> TryFrom<Message> for Method<'a>
impl<'a> TryFrom<Message> for Method<'a>
Source§type Error = MethodError<'a>
type Error = MethodError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<Message> for Server2Client<'a>
impl<'a> TryFrom<Message> for Server2Client<'a>
Source§impl<'a> TryFrom<Message> for Server2ClientResponse<'a>
impl<'a> TryFrom<Message> for Server2ClientResponse<'a>
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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