Struct hypercore_protocol::schema::Extension
source · pub struct Extension {
pub name: String,
pub message: Vec<u8>,
}
Expand description
Extension message. Type 9. Use this for custom messages in your application.
Fields§
§name: String
Name of the custom message
message: Vec<u8>
Message content, use empty vector for no data.
Trait Implementations§
source§impl PartialEq for Extension
impl PartialEq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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