[−][src]Struct ipfs_embed_net::NetworkService
Implementations
impl<S: StoreParams> NetworkService<S>
[src]
pub fn new(config: NetworkConfig) -> Result<Self>
[src]
Trait Implementations
impl<S: StoreParams + 'static> Network<S> for NetworkService<S>
[src]
type Subscription = UnboundedReceiver<NetworkEvent>
fn local_peer_id(&self) -> &PeerId
[src]
fn external_addresses(&self) -> Vec<Multiaddr>
[src]
fn provide(&self, cid: &Cid)
[src]
fn unprovide(&self, cid: &Cid)
[src]
fn providers(&self, cid: &Cid)
[src]
fn connect(&self, peer_id: PeerId)
[src]
fn want(&self, cid: Cid, priority: i32)
[src]
fn cancel(&self, cid: Cid)
[src]
fn send_to(&self, peer_id: PeerId, cid: Cid, data: Vec<u8>)
[src]
fn send(&self, cid: Cid, data: Vec<u8>)
[src]
fn subscribe(&self) -> Self::Subscription
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for NetworkService<S>
impl<S> Send for NetworkService<S>
impl<S> Sync for NetworkService<S>
impl<S> Unpin for NetworkService<S> where
S: Unpin,
S: Unpin,
impl<S> !UnwindSafe for NetworkService<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,
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.
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,