[−][src]Struct murmel::p2p::BitcoinP2PConfig
Fields
network: Network
nonce: u64
height: AtomicUsize
user_agent: String
max_protocol_version: u32
server: bool
Trait Implementations
impl P2PConfig<NetworkMessage, RawNetworkMessage> for BitcoinP2PConfig
[src]
fn version(
&self,
remote: &SocketAddr,
max_protocol_version: u32
) -> NetworkMessage
[src]
&self,
remote: &SocketAddr,
max_protocol_version: u32
) -> NetworkMessage
fn nonce(&self) -> u64
[src]
fn magic(&self) -> u32
[src]
fn user_agent(&self) -> &str
[src]
fn get_height(&self) -> u32
[src]
fn set_height(&self, height: u32)
[src]
fn max_protocol_version(&self) -> u32
[src]
fn min_protocol_version(&self) -> u32
[src]
fn verack(&self) -> NetworkMessage
[src]
fn wrap(&self, m: NetworkMessage) -> RawNetworkMessage
[src]
fn unwrap(&self, e: RawNetworkMessage) -> Result<NetworkMessage, Error>
[src]
fn encode(
&self,
item: &RawNetworkMessage,
dst: &mut Buffer
) -> Result<(), Error>
[src]
&self,
item: &RawNetworkMessage,
dst: &mut Buffer
) -> Result<(), Error>
fn decode(&self, src: &mut Buffer) -> Result<Option<RawNetworkMessage>, Error>
[src]
Auto Trait Implementations
impl Send for BitcoinP2PConfig
impl Sync for BitcoinP2PConfig
impl Unpin for BitcoinP2PConfig
impl UnwindSafe for BitcoinP2PConfig
impl RefUnwindSafe for BitcoinP2PConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,