Skip to main content

encode_notification

Function encode_notification 

Source
pub fn encode_notification<T: Serialize + ?Sized>(
    method: &str,
    params: &T,
) -> Result<Bytes, CodecError>
Expand description

Encodes a notification.