pub struct AliasServiceRequester { /* private fields */ }Implementations§
Source§impl AliasServiceRequester
impl AliasServiceRequester
pub fn register<A: Into<AliasId>>(&self, alias: A) -> AliasGuard
pub async fn find<A: Into<AliasId>>( &self, alias: A, ) -> Option<AliasFoundLocation>
pub async fn open_stream<A: Into<AliasId>>( &self, alias: A, over_service: P2pServiceRequester, meta: Vec<u8>, ) -> Result<AliasStreamLocation>
pub fn shutdown(&self)
Trait Implementations§
Source§impl Clone for AliasServiceRequester
impl Clone for AliasServiceRequester
Source§fn clone(&self) -> AliasServiceRequester
fn clone(&self) -> AliasServiceRequester
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AliasServiceRequester
impl RefUnwindSafe for AliasServiceRequester
impl Send for AliasServiceRequester
impl Sync for AliasServiceRequester
impl Unpin for AliasServiceRequester
impl UnwindSafe for AliasServiceRequester
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