pub struct Client { /* private fields */ }Implementations
sourceimpl Client
impl Client
pub async fn register(
node_addr: SocketAddr,
node_name: String,
control_addr: SocketAddr,
quic_client: Client,
signing_request: String
) -> Result<(u64, Self, String)>
pub fn next_message_id(&self) -> u64
pub fn connection(&self) -> &Connection
pub fn control_addr(&self) -> SocketAddr
pub async fn send(&self, req: Request) -> Result<Response>
pub async fn recv(&self) -> Result<(u64, Response)>
pub async fn refresh_nodes(&self) -> Result<()>
pub async fn deregister(&self, node_id: u64)
pub fn node_info(&self, node_id: u64) -> Option<NodeInfo>
pub fn node_ids(&self) -> Vec<u64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn node_count(&self) -> usize
pub async fn get_module(&self, module_id: u64) -> Option<Vec<u8>>
pub async fn add_module(&self, module: Vec<u8>) -> Result<RawWasm>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more