#[repr(C)]pub struct PeerRequestParams {
pub version: u8,
pub version_name: StringView,
pub bot: bool,
pub name: StringView,
pub serial: StringView,
pub bits_is_using_official_client: u8,
}Expand description
PeerRequestParams in network.hpp.
Fields§
§version: u8version.
version_name: StringViewversionName.
bot: boolbot.
name: StringViewname.
serial: StringViewserial.
bits_is_using_official_client: u8Bit-fields, from bit 0: isUsingOfficialClient: 1, isUsingOmp: 1.
Trait Implementations§
Source§impl Clone for PeerRequestParams
impl Clone for PeerRequestParams
Source§fn clone(&self) -> PeerRequestParams
fn clone(&self) -> PeerRequestParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeerRequestParams
Source§impl VirtualReturn for PeerRequestParams
impl VirtualReturn for PeerRequestParams
Source§type Raw = PeerRequestParams
type Raw = PeerRequestParams
The type the foreign function is declared to return.
Source§fn from_raw(raw: PeerRequestParams) -> PeerRequestParams
fn from_raw(raw: PeerRequestParams) -> PeerRequestParams
The value the caller sees.
Auto Trait Implementations§
impl !Send for PeerRequestParams
impl !Sync for PeerRequestParams
impl Freeze for PeerRequestParams
impl RefUnwindSafe for PeerRequestParams
impl Unpin for PeerRequestParams
impl UnsafeUnpin for PeerRequestParams
impl UnwindSafe for PeerRequestParams
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