Struct hypercore_protocol::schema::Open
source · pub struct Open {
pub channel: u64,
pub protocol: String,
pub discovery_key: Vec<u8>,
pub capability: Option<Vec<u8>>,
}
Expand description
Open message
Fields§
§channel: u64
Channel id to open
protocol: String
Protocol name
discovery_key: Vec<u8>
Hypercore discovery key
capability: Option<Vec<u8>>
Capability hash
Trait Implementations§
source§impl PartialEq for Open
impl PartialEq for Open
impl StructuralPartialEq for Open
Auto Trait Implementations§
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnwindSafe for Open
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