Struct vapcore_network_devp2p::NetworkContext [−][src]
IO access point. This is passed to all IO handlers and provides an interface to the IO subsystem.
Trait Implementations
impl<'s> NetworkContext for NetworkContext<'s>[src]
fn send(
&self,
peer: PeerId,
packet_id: PacketId,
data: Vec<u8>
) -> Result<(), Error>[src]
&self,
peer: PeerId,
packet_id: PacketId,
data: Vec<u8>
) -> Result<(), Error>
fn send_protocol(
&self,
protocol: ProtocolId,
peer: PeerId,
packet_id: PacketId,
data: Vec<u8>
) -> Result<(), Error>[src]
&self,
protocol: ProtocolId,
peer: PeerId,
packet_id: PacketId,
data: Vec<u8>
) -> Result<(), Error>
fn respond(&self, packet_id: PacketId, data: Vec<u8>) -> Result<(), Error>[src]
fn disable_peer(&self, peer: PeerId)[src]
fn disconnect_peer(&self, peer: PeerId)[src]
fn is_expired(&self) -> bool[src]
fn register_timer(
&self,
token: TimerToken,
delay: Duration
) -> Result<(), Error>[src]
&self,
token: TimerToken,
delay: Duration
) -> Result<(), Error>
fn peer_client_version(&self, peer: PeerId) -> ClientVersion[src]
fn session_info(&self, peer: PeerId) -> Option<SessionInfo>[src]
fn protocol_version(&self, protocol: ProtocolId, peer: PeerId) -> Option<u8>[src]
fn subprotocol_name(&self) -> ProtocolId[src]
fn is_reserved_peer(&self, peer: PeerId) -> bool[src]
fn payload_soft_limit(&self) -> usize[src]
Auto Trait Implementations
impl<'s> !RefUnwindSafe for NetworkContext<'s>
impl<'s> Send for NetworkContext<'s>
impl<'s> Sync for NetworkContext<'s>
impl<'s> Unpin for NetworkContext<'s>
impl<'s> !UnwindSafe for NetworkContext<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,