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 CompactEncoding<Open> for State
impl CompactEncoding<Open> for State
impl StructuralPartialEq for Open
Auto Trait Implementations§
impl Freeze for Open
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