[−][src]Struct tentacle_discovery::DiscoveryProtocol
Methods
impl<M: AddressManager> DiscoveryProtocol<M>
[src]
pub fn new(discovery: Discovery<M>) -> DiscoveryProtocol<M>
[src]
Trait Implementations
impl<M: AddressManager + Send + 'static> ServiceProtocol for DiscoveryProtocol<M>
[src]
fn init(&mut self, context: &mut ProtocolContext)
[src]
fn connected(&mut self, context: ProtocolContextMutRef, _: &str)
[src]
fn disconnected(&mut self, context: ProtocolContextMutRef)
[src]
fn received(&mut self, context: ProtocolContextMutRef, data: Bytes)
[src]
fn notify(&mut self, _context: &mut ProtocolContext, _token: u64)
[src]
fn poll(&mut self, _context: &mut ProtocolContext)
[src]
Auto Trait Implementations
impl<M> Send for DiscoveryProtocol<M> where
M: Send,
M: Send,
impl<M> Sync for DiscoveryProtocol<M> where
M: Sync,
M: Sync,
impl<M> Unpin for DiscoveryProtocol<M> where
M: Unpin,
M: Unpin,
impl<M> !UnwindSafe for DiscoveryProtocol<M>
impl<M> !RefUnwindSafe for DiscoveryProtocol<M>
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 = !
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<T> Same<T> for T
type Output = T
Should always be Self