pub struct Veilid { /* private fields */ }Implementations§
Source§impl Veilid
impl Veilid
pub async fn new( routing_context: RoutingContext, update_tx: Sender<VeilidUpdate>, ) -> Result<Self>
Trait Implementations§
Source§impl Peer for Veilid
impl Peer for Veilid
fn subscribe_veilid_update(&self) -> Receiver<VeilidUpdate>
async fn reset(&mut self) -> Result<()>
async fn shutdown(self) -> Result<()>
async fn announce( &mut self, index: &Index, ) -> Result<(CryptoTyped<CryptoKey>, Target, Header)>
async fn reannounce_route( &mut self, key: &CryptoTyped<CryptoKey>, prior_route: Option<Target>, index: &Index, header: &Header, ) -> Result<(Target, Header)>
async fn resolve( &mut self, key: &CryptoTyped<CryptoKey>, root: &Path, ) -> Result<(Target, Header, Index)>
async fn reresolve_route( &mut self, key: &CryptoTyped<CryptoKey>, prior_route: Option<Target>, ) -> Result<(Target, Header)>
async fn request_block( &mut self, target: Target, piece: usize, block: usize, ) -> Result<Vec<u8>>
async fn reply_block_contents( &mut self, call_id: OperationId, contents: &[u8], ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Veilid
impl !RefUnwindSafe for Veilid
impl Send for Veilid
impl Sync for Veilid
impl Unpin for Veilid
impl !UnwindSafe for Veilid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more